BusinessMessage¶
- class pyrogram.types.BusinessMessage¶
Business working hours.
- Parameters:¶
shortcut_id (``int``) – ID of the shortcut.
is_greeting (``bool``, *optional*) – True, if the message is a greeting message.
is_away (``bool``, *optional*) – True, if the message is an away message.
no_activity_days (``int``, *optional*) – Period of inactivity after which the greeting message should be sent again.
offline_only (``bool``, *optional*) – Don’t send the away message if you’ve recently been online.
recipients (List of :obj:`~pyrogram.types.User`, *optional*) – Recipients of the message.
schedule (:obj:`~pyrogram.enums.BusinessSchedule`, *optional*) – Schedule of the away message to be sent.
start_date (``datetime``, *optional*) – Start date of the away message.
end_date (``datetime``, *optional*) – End date of the away message.