Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
As far as I know, to be "always" online it is enough to send messages somewhere every 30-60 seconds, let's say to some chat. But infa is not verified
https://tl.telethon.dev/methods/account/update_sta...
from telethon.sync import TelegramClient
from telethon import functions, types
with TelegramClient(name, api_id, api_hash) as client:
result = client(functions.account.UpdateStatusRequest(
offline=False
))
print(result)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question