tdlib / telegram-bot-api

Telegram Bot API server
https://core.telegram.org/bots
Boost Software License 1.0
2.94k stars 569 forks source link

message expired less than 24 hour #561

Closed RealYukiSan closed 3 months ago

RealYukiSan commented 3 months ago

telegram docs says:

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

but when I fetch the getUpdates endpoint, it's return empty, but my last message was today morning at 08:30 how to prevent it?

levlam commented 3 months ago

Either the bot has already received the update, or was logged in after the message was sent.

RealYukiSan commented 3 months ago

I believe this information may be included in the documentation, but I'm not sure. Could you please point me to the relevant section? I may have missed it

levlam commented 3 months ago

"until the bot receives them either way"

Also, the bot receives only new updates from the moment it started to use Bot API.

RealYukiSan commented 3 months ago

I see, thanks for the response >///<