简体   繁体   中英

Why invoke Telegram Bot API reported error msg : "chat not found"

I use Telegram Bot API to send a messsage to my account ,but return the error msg "Bad Request:chat not found",I have check my bot's token and account's chat_id is no problem,after search in google,the answer is i must send a message to the bot first ,then the Bot API can invoke success.But , it is so trouble ! I can't tell my software's user ,they must send a msg to bot in telegram first,it is unacceptable!Is there any other way ?

As I understand it, you want to send message to the user when user has not started using your bot. Am I right?

If so, you can not send a message to a user, who is not using your bot.

If you have another problem, you need to share your code or tell us more.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM