telethonchat | Unsorted

Telegram-канал telethonchat - Telethon Chat

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

Subscribe to a channel

Telethon Chat

In official telegram page

Читать полностью…

Telethon Chat

Hi
Whats the layer of telegram now?

Читать полностью…

Telethon Chat

https://core.telegram.org/bots/api#rich-message-formatting-options

Читать полностью…

Telethon Chat

yes there was talk of issues on dc5 earlier. may be related

Читать полностью…

Telethon Chat

'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?

Читать полностью…

Telethon Chat

dc 5 seems to be having issues

Читать полностью…

Telethon Chat

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.

Читать полностью…

Telethon Chat

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

Читать полностью…

Telethon Chat

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.

Читать полностью…

Telethon Chat

emoji_doc = next((doc for doc in StickerSet.documents if doc.id == my_cool_id), None)

Читать полностью…

Telethon Chat

but you'll get the full sticker / emoji pack.

Читать полностью…

Telethon Chat

do a GetStickerSetRequest and use InputStickerSetShortName as input.

Читать полностью…

Telethon Chat

/channel/TelethonChat/699337

Читать полностью…

Telethon Chat

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

Читать полностью…

Telethon Chat

other being bad isn't an excuse to be bad yourself

Читать полностью…

Telethon Chat

So why there isn't available in source code?

Читать полностью…

Telethon Chat

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.

Читать полностью…

Telethon Chat

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?

Читать полностью…

Telethon Chat

Yes. My account is located on DC5.

Читать полностью…

Telethon Chat

all message are blocking ...

Читать полностью…

Telethon Chat

If it's down, then how you're here?

Читать полностью…

Telethon Chat

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

Читать полностью…

Telethon Chat

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?

Читать полностью…

Telethon Chat

I thought you want to obtain the sticker set.

Читать полностью…

Telethon Chat

How can I get one separate sticker in this case?

Читать полностью…

Telethon Chat

like a

stickerset: StickerSet = await bot(GetStickerSetRequest(
InputStickerSetShortName(STICKER_PACK_SHORT_NAME)))
?

Читать полностью…

Telethon Chat

Hello!

stickers = await client(GetStickerSetRequest(
stickerset=InputStickerSetID(
id=my_cool_id, access_hash=???
),
hash=0
))

How do I get an access_hash if I'm logged in as a bot (using bot_token)?
sticker_sets = await client(GetAllStickersRequest(0))

is not accessible to bots

Читать полностью…

Telethon Chat

And do we get the exact same inline callback object? 🤔

Читать полностью…

Telethon Chat

just ignore if possible

Читать полностью…

Telethon Chat

What's the html for inline button. Some examples?

Читать полностью…
Subscribe to a channel