可以将消息从我的机器人发送给我自己 - 找不到聊天

发布于 2025-02-06 16:04:43 字数 427 浏览 2 评论 0原文

我从botfather创建了电报机器人,它给了我一个API密钥。现在,当我试图打开此URL时,

https://api.telegram.org/bot<MYAPIKEY>/sendMessage?chat_id=@<MYTELEGRAMUSERNAME>&text=Hello

它会响应我

{
    "ok": false,
    "error_code": 400,
    "description": "Bad Request: chat not found"
}

如何修复?我忘了做什么?

我试图在电报中打开我的机器人页面,然后在那里输入某些内容(它没有响应)。


我希望我的计算机向我发送电报通知。

I have created Telegram bot from BotFather and it gave me an API key. Now when I am trying to open this URL

https://api.telegram.org/bot<MYAPIKEY>/sendMessage?chat_id=@<MYTELEGRAMUSERNAME>&text=Hello

it responds me

{
    "ok": false,
    "error_code": 400,
    "description": "Bad Request: chat not found"
}

How to fix? What I forgot to do?

I was trying to open my bot's page in telegram and type there something (it didn't respond anything).


I want my computer to send Telegram notifications to me.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文