How can I send a message to someone with my telegram bot using their Username

后端 未结 7 1005
执笔经年
执笔经年 2020-12-15 17:30

I am using the telepot python library, I know that you can send a message when you have someone\'s UserID(Which is a number). I wanna know if it is possible to send a messag

7条回答
  •  眼角桃花
    2020-12-15 18:13

    According to Telegram Bot API documentation you should be able to specify @channelusername.

    UPDATE

    There is no possibility to achieve this. I found this note in Telegram Bot API Changelog:

    For this to work, the bot must be an administrator in the channel

提交回复
热议问题