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:
223ID:
E519ABAB
- Parameters:
shortcut_id (
int32-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 (
int32-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_id →
int├── recipients →
BusinessRecipients│ └──
BusinessRecipients│ ├── existing_chats →
true (optional)│ ├── new_chats →
true (optional)│ ├── contacts →
true (optional)│ ├── non_contacts →
true (optional)│ ├── exclude_selected →
true (optional)│ └── users →
Vector < long > (optional)└── no_activity_days →
intExample
BusinessGreetingMessage(
shortcut_id=0,
recipients=BusinessRecipients(),
no_activity_days=0,
)