InputBusinessGreetingMessage

class pyrogram.raw.types.InputBusinessGreetingMessage

Describes a Telegram Business greeting, automatically sent to new users writing to us in private for the first time, or after a certain inactivity period.

Constructor of InputBusinessGreetingMessage.

Details:
  • Layer: 223

  • ID: 194CB3B

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

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

  • no_activity_days (int 32-bit) – The number of days after which a private chat will be considered as inactive; currently, must be one of 7, 14, 21, or 28.

TL Schema

inputBusinessGreetingMessage#194cb3b
shortcut_id:int
recipients:InputBusinessRecipients
no_activity_days:int

= InputBusinessGreetingMessage

Parameter Tree

InputBusinessGreetingMessage
├── shortcut_idint
├── 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
│ └── InputUserFromMessage
│ ├── peerInputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_idint
│ └── user_idlong
└── no_activity_daysint

Example

InputBusinessGreetingMessage(
    shortcut_id=0,
    recipients=InputBusinessRecipients(),
    no_activity_days=0,
)