Lonami

Results 591 comments of Lonami

Folders other than archived should just be different numbers.

Other folder IDs should work just fine. I encourage you to create them with an official client and then check their value in Telethon to find out how other clients...

That really shouldn't be the case, perhaps `iter_dialogs` is acting up. Have you tried using the raw API method `getDialogs` (https://tl.telethon.dev) directly?

So now we're using raw API and Telegram is directly telling us that those dialogs have no folder -- here Telethon can't change the results or go wrong, as you're...

v2 is still in the works and pretty much not ready for use yet (it's missing a few changes and then a lot of testing and docs updates).

For what it's worth, this consistently works: ```python from telethon import utils @bot.on(events.CallbackQuery) async def handle_callback_query(event: events.CallbackQuery.Event): msg_id = event.original_update.msg_id botapi_id = utils._encode_telegram_base64(struct.pack('

Most relevant references in `tdlib` are: * https://github.com/tdlib/td/blob/c407b244a086e71773e0b9f8f64d4fb0536bc447/td/telegram/cli.cpp#L2880-L2889 * https://github.com/tdlib/td/blob/c407b244a086e71773e0b9f8f64d4fb0536bc447/td/telegram/Td.cpp#L1136-L1159 I have also confirmed not only my library is affected.

tdlib, which I believe powers bot-API, seems to handle this correctly, which is why I linked the code here for investigation. However, I couldn't find anything weird or magic in...

Oh, thanks, that's a cool finding. The library already has code to create senders to other datacenters (e.g. downloading files) so this shouldn't be too bad.

This is the code where we create a sender for another DC: https://github.com/LonamiWebs/Telethon/blob/1669d800822e93b4b00be2b161500aef4c54b6c2/telethon/client/downloads.py#L44-L58 It is very important that we return it once we're done because it was only borrowed: https://github.com/LonamiWebs/Telethon/blob/1669d800822e93b4b00be2b161500aef4c54b6c2/telethon/client/downloads.py#L87-L89...