我正在使用python-telegram-bot
向用户发送消息(在私人消息中)。在所写的documentation中,该机器人可以在知道用户channel_id
或username
的情况下向用户发送消息。
但是,通过chat_id消息正在发送,但是通过用户名却收到错误telegram.error.Bad Request: Chat not found
`
bot.send_message(chat_id='@username', text)
我正在使用python-telegram-bot将消息发送给用户(在私人消息中)。在编写的文档中,该机器人可以知道用户的channel_id或用户名来向用户发送消息。但是,通过chat_id ...
这是我的方法
在此引用