Telegram bot sends messages in a few days

I have some problems with my telegram message, an overview of the problem:

You will send / run the command, my bot will start sending messages, but after a few days it will stop sending messages, if the client passes some message, the bot client will start sending messages again, what can I do to determine after how many days it will stop, does Does he have documentation anywhere? maybe some configurations are wrong? who has this situation, answer?

Also, I always call this api to send messages:

https://api.telegram.org/bot{TELEGRAM_BOT}/sendMessage?disable_web_page_preview=false&chat_id=$chat_id&text={TEXT} 
+5
source share
2 answers

When a group of telegrams is transferred to a supergroup, the chat identifier for the group changes. Check if the message has been sent to the new chat_id.

+3
source

if a user stops a bot that you cannot send to him and you get an error message:

 [Error]: Bot was blocked by the user 

I use bots about the start, and I've never seen anything like it.

+2
source

Source: https://habr.com/ru/post/1244085/


All Articles