-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ASK] getChat delayed #2856
Comments
You need to handle |
@levlam, I did test with your suggestion, seems the openChat didn't work for my case. fetchTelegramChat still cant get latest message. |
You need to handle |
@levlam. I did try your suggestion above. but I got this error when testing it. can you give me example how to do that? |
|
Hi, I need help here.
I use getChats to get the chats IDs. And then I use getChat for each chatID to get latest message.
the issue is the message that i got from tdlib is diff with that showing in apps.
lets say I send a new message to my account using another account.
in my apps showing the latest message, but when using tdlib, what i got is not the last message. the latest message still the previous message. not the one i sent.
`await client.login();
const chats = await client.invoke({
_: 'getChats',
limit: 10
});
if (chats && chats.chat_ids.length > 0) {
for (const chatID of chats.chat_ids) {
chat = await fetchTelegramChat(chatID, client)
// Handle the message here
}
}
await client.close();`
can anyone help me what happen with this?
The text was updated successfully, but these errors were encountered: