BusinessGreetingMessage

class pyrogram.raw.types.BusinessGreetingMessage

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 BusinessGreetingMessage.

Details:
  • Layer: 223

  • ID: E519ABAB

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

  • recipients (BusinessRecipients) – 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

businessGreetingMessage#e519abab
shortcut_id:int
recipients:BusinessRecipients
no_activity_days:int

= BusinessGreetingMessage

Parameter Tree

BusinessGreetingMessage
├── shortcut_idint
├── recipientsBusinessRecipients
│ └── BusinessRecipients
│ ├── existing_chatstrue (optional)
│ ├── new_chatstrue (optional)
│ ├── contactstrue (optional)
│ ├── non_contactstrue (optional)
│ ├── exclude_selectedtrue (optional)
│ └── usersVector < long > (optional)
└── no_activity_daysint

Example

BusinessGreetingMessage(
    shortcut_id=0,
    recipients=BusinessRecipients(),
    no_activity_days=0,
)