InputBusinessAwayMessage

class pyrogram.raw.types.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.

Constructor of InputBusinessAwayMessage.

Details:
  • Layer: 223

  • ID: 832175E0

Parameters:
  • shortcut_id (int 32-bit) – ID of a quick reply shorcut, containing the away messages to send, see here » for more info.

  • schedule (BusinessAwayMessageSchedule) – Specifies when should the away messages be sent.

  • recipients (InputBusinessRecipients) – Allowed recipients for the away messages.

  • offline_only (bool, optional) – If set, the messages will not be sent if the account was online in the last 10 minutes.

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(
    shortcut_id=0,
    schedule=BusinessAwayMessageScheduleAlways(),
    recipients=InputBusinessRecipients(),
)