InputBusinessAwayMessage

class pyrogram.raw.base.InputBusinessAwayMessage

Describes a Telegram Business away message, automatically sent to users writing to us when we’re offline, during closing hours, while we’re on vacation, or in some other custom time period when we cannot immediately answer to the user.

Constructors:

This base type has 1 constructor available.

InputBusinessAwayMessage

Describes a Telegram Business away message, automatically sent to users writing to us when we're offline, during closing hours, while we're on vacation, or in some other custom time period when we cannot immediately answer to the user.

TL Schema

inputBusinessAwayMessage#832175e0
flags:#
offline_only:flags.0?true
shortcut_id:int
schedule:BusinessAwayMessageSchedule
recipients:InputBusinessRecipients

= InputBusinessAwayMessage

Parameter Tree

InputBusinessAwayMessage
├── offline_onlytrue (optional)
├── shortcut_idint
├── scheduleBusinessAwayMessageSchedule
│ ├── start_dateint
│ └── end_dateint
└── recipientsInputBusinessRecipients
├── existing_chatstrue (optional)
├── new_chatstrue (optional)
├── contactstrue (optional)
├── non_contactstrue (optional)
├── exclude_selectedtrue (optional)
└── usersVector < InputUser > (optional)
├── InputUserEmpty
├── InputUserSelf
├── InputUser
│ ├── user_idlong
│ └── access_hashlong
├── peerInputPeer
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ ├── InputPeerUser
│ ├── InputPeerChannel
├── msg_idint
└── user_idlong

Example

InputBusinessAwayMessage(
    offline_only=None,
    shortcut_id=0,
    schedule=BusinessAwayMessageScheduleAlways(),
    recipients=InputBusinessRecipients(
        existing_chats=None,
        new_chats=None,
        contacts=None,
        non_contacts=None,
        exclude_selected=None,
        users=None
    ),
)