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: 227

  • 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_id → int
├── recipients → InputBusinessRecipients
│ ├── existing_chats → true (optional)
│ ├── new_chats → true (optional)
│ ├── contacts → true (optional)
│ ├── non_contacts → true (optional)
│ ├── exclude_selected → true (optional)
│ └── users → Vector < InputUser > (optional)
│ ├── InputUserEmpty
│ ├── InputUserSelf
│ ├── InputUser
│ │ ├── user_id → long
│ │ └── access_hash → long
│ └── InputUserFromMessage
│ ├── peer → InputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_id → int
│ └── user_id → long
└── no_activity_days → int

Example

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