telegram-bot – Telegram bot和方法getUpdates

我有一个关于Telegram bot的问题,我几周前创建了一个机器人,它工作正常,但getUpdates方法有一个奇怪的行为;确实,如果我使用链接:

https://api.telegram.org/bot<token>/getUpdates

现在我看不到任何消息,但如果我启动一个新的机器人这个链接工作正常,就像我创建另一个机器人的第一天.

在此链接停止工作之后有一段特定的时间间隔?
有一种方法可以重新启用它吗?

提前致谢

最佳答案 从 Telegram Bot API文件:

Incoming updates are stored on the server until the bot receives them
… but they will not be kept longer than 24 hours.

所以,getUpdates并没有停止工作.旧邮件在有限的时间后被删除.

点赞