6095
Official Telethon's chat! Rules: • Speak English • Stay on topic (questions about Telethon) • Be respectful • Don't ask to ask • Spam-related uses lead to ban • Read https://docs.telethon.dev before asking things here Read more about us @TelethonUpdates
https://core.telegram.org/bots/api#rich-message-formatting-options
Читать полностью…
yes there was talk of issues on dc5 earlier. may be related
Читать полностью…
'Attempt 1 at connecting failed: TimeoutError:
Attempt 2 at connecting failed: TimeoutError:
Attempt 3 at connecting failed: TimeoutError:
Attempt 4 at connecting failed: TimeoutError:
Attempt 5 at connecting failed: TimeoutError:
Attempt 6 at connecting failed: TimeoutError:' what's wrong?
Hey, that's not how you ask a question! If you want helpful advice (or any response at all) read this first and then ask again. If you have the time, How To Ask Questions The Smart Way is another wonderful resource worth reading.
Читать полностью…
raw api calls return binary content that telethon deserializes into python classes. the mtproto api does not use json at all. to_json (and to_dict) are just a convenience
Читать полностью…
Hi and welcome to the group. Before asking any questions, please read the rules from the group's description, and don't forget to read the docs. Make sure you are using the latest version with pip3 install -U telethon, since most problems have already been fixed in newer versions.
emoji_doc = next((doc for doc in StickerSet.documents if doc.id == my_cool_id), None)Читать полностью…
but you'll get the full sticker / emoji pack.
Читать полностью…
do a GetStickerSetRequest and use InputStickerSetShortName as input.
Читать полностью…
Yeh 💯
But i swear I didn't use "fucking" to disrespect someone.
Idk how to explain but.. we often use these terms to emphasize things
other being bad isn't an excuse to be bad yourself
Читать полностью…
So why there isn't available in source code?
Читать полностью…
Hi and welcome to the group. Before asking any questions, please read the rules from the group's description, and don't forget to read the docs. Make sure you are using the latest version with pip3 install -U telethon, since most problems have already been fixed in newer versions.
https://octogram.me/dcstatus
hm, DC available, but get errors:
WARNING:telethon.network.mtprotosender:Attempt 1 at connecting failed: TimeoutError:
WARNING:telethon.network.mtprotosender:Attempt 2 at connecting failed: TimeoutError:
WARNING:telethon.network.mtprotosender:Attempt 3 at connecting failed: TimeoutError:
WARNING:telethon.network.mtprotosender:Attempt 4 at connecting failed: TimeoutError:
WARNING:telethon.network.mtprotosender:Attempt 5 at connecting failed: TimeoutError:
WARNING:telethon.network.mtprotosender:Attempt 6 at connecting failed: TimeoutError:
—
Maybe new IP address server Telegram DC5?
and indeed there is no reverse to to_json but there are type hints so you might be able to do dynamic conversions to the tl types if you really want to work on dicts/json
Читать полностью…
how can i send the raw requests using json format?
i dont want to use the functions and types in tl file.
i saw that the TLObject has to_json and to_dict but it does not support the backward (for ex. from_json)
and another thing that i need any raw api calls return me the raw json not the TLObject and then to_dict, i need it directly.
so anyone has do this or can help me?
I thought you want to obtain the sticker set.
Читать полностью…
How can I get one separate sticker in this case?
Читать полностью…
like a
stickerset: StickerSet = await bot(GetStickerSetRequest(? Читать полностью…
InputStickerSetShortName(STICKER_PACK_SHORT_NAME)))
Hello!
stickers = await client(GetStickerSetRequest(
stickerset=InputStickerSetID(
id=my_cool_id, access_hash=???
),
hash=0
))
access_hash if I'm logged in as a bot (using bot_token)?sticker_sets = await client(GetAllStickersRequest(0))
And do we get the exact same inline callback object? 🤔
Читать полностью…
What's the html for inline button. Some examples?
Читать полностью…