O
O
oe24y2021-10-03 00:43:04
Python
oe24y, 2021-10-03 00:43:04

How to make my account always visible as online in Telethon?

In fact, the question is about the API rather.
What URL API should I pull to set my profile online status for a while?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergo Zar, 2021-10-03
@Sergomen

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

S
ScriptKiddo, 2021-10-03
@ScriptKiddo

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 question

Ask a Question

731 491 924 answers to any question