UpdateStatusRequest

Only users can use this request. See code examples.

---functions---
account.updateStatus#6628562c offline:Bool = Bool

Returns

Bool

This type has no instances available.

Parameters

offlineBool

Known RPC errors

This request can cause 1 known error:

SessionPasswordNeededErrorTwo-steps verification is enabled and a password is required.

You can import these from telethon.errors.

Example

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)