UpdateBusinessAwayMessageRequest

Both users and bots may be able to use this request. See code examples.

---functions---
account.updateBusinessAwayMessage#a26a7fa5 flags:# message:flags.0?InputBusinessAwayMessage = Bool

Returns

Bool

This type has no instances available.

Parameters

messageInputBusinessAwayMessageThis argument defaults to None and can be omitted.

Known RPC errors

This request can't cause any RPC error as far as we know.

Example

from telethon.sync import TelegramClient
from telethon import functions, types

with TelegramClient(name, api_id, api_hash) as client:
    result = client(functions.account.UpdateBusinessAwayMessageRequest(
        message=types.InputBusinessAwayMessage(
            shortcut_id=42,
            schedule=types.BusinessAwayMessageScheduleAlways(),
            recipients=types.InputBusinessRecipients(
                existing_chats=True,
                new_chats=True,
                contacts=True,
                non_contacts=True,
                exclude_selected=True,
                users=['username']
            ),
            offline_only=True
        )
    ))
    print(result)