telethonchat | Unsorted

Telegram-канал telethonchat - Telethon Chat

6097

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

😂

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

Telethon Chat

if I understood everything correctly, I should have created my handler on an infinite loop with the help of GetChannelDifference

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

Telethon Chat

I've already tried to do it through the handler, but it didn't work out. He did not react to the appearance of a new post in the channel. This problem was not everywhere in some channels everything worked fine

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

Telethon Chat

I tried to do it through the handler, but he did not see the new posts and offered to make his own handler

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

Telethon Chat

Hello, do we have a method to add folders and joins to the channel and its groups?

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

Telethon Chat

phone = 'xxxxxxxxxx'

result = await client.send_code_request(phone)
while True:
try:
code = input('code')
await client.sign_in(phone, code, phone_code_hash=result.phone_code_hash)
except errors.SessionPasswordNeededError:
password = input('password')
await client.check_password(password=password)
break


Why can't I send the verification code to my device? I can make sure there is no problem with my mobile phone number.

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

Telethon Chat

hello How to create a folder on telethon?

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

Telethon Chat

it`s relate but with doing some other libraries to prevent divulgness of bot using telethon

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

Telethon Chat

That is not related to Telethon. Please move to a different group with the correct topic to continue that conversation

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

Telethon Chat

Has the update of the stars earned in channel competitions been added?

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

Telethon Chat

get join requests list how?

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

Telethon Chat

why do you need concurrent threads? for more performance and etc..
even if you run separate threads together, only one of them is executing at the time, read about GIL

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

Telethon Chat

telethon doesn't support true sync. it's always async

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

Telethon Chat

Thank you for your reply. I'll have a look.

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

Telethon Chat

How should I capture the prompt to login again

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

Telethon Chat

How to register using Telethon library, sale

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

Telethon Chat

they offered to do this:

ask Telegram, automatic updates aren't reliable for large enough channels for users.

triggering catch_up calls repeatedly after passing it True may or may not improve the frequency, otherwise you'll need to make telethon fetch updates through GetChannelDifference/iter_messages yourself

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

Telethon Chat

It turned out like that, but for some reason he doesn't want to work either.

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

Telethon Chat

the account just flew into the ban

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

Telethon Chat

What is the method for pushing stars to the invoice button in the Bot message?

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

Telethon Chat

you mean cron fetch message ? if i do that may my account get banned ?

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

Telethon Chat

how to change the session language, for example, in which bots respond with a check mark

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

Telethon Chat

provide the full traceback.

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

Telethon Chat

hi all how can i use search_message method even though i`m using client = tdesk.toTelethon(parameters)
because i`m using opentele and opentele doesn`t have any search_message inside the client variable

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

Telethon Chat

Please enable logging:

import logging
logging.basicConfig(level=logging.WARNING)


If you need more information, use logging.DEBUG instead.

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

Telethon Chat

cpu-bound would be best offloaded to a separate process, due to the aforementioned GIL

however when using io-bound libraries that aren't async, threads are ok

in any case asyncio offers ways to use both of these

and this is ultimately not related to telethon

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

Telethon Chat

its not about the threads, its about telethon, everything in telethon has been written in pure asyncio, so you better do everything in async/await
telethon.sync is just a trick and not recommended

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

Telethon Chat

I run two clients in separate threads
Is it better to run the clients inside the thread as async or as sync?

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

Telethon Chat

/channel/TelethonChat/580052

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

Telethon Chat

.start() already deals with it. you'll be prompted to re-login if it's invalid.

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