Link Search Menu Expand Document

Constructor: businessRecipients

Back to constructors index

Specifies the chats that can receive Telegram Business away » and greeting » messages.

If exclude_selected is set, specifies all chats that cannot receive Telegram Business away » and greeting » messages.

Attributes:

NameTypeRequiredDescription
existing_chatsBoolOptionalAll existing private chats.
new_chatsBoolOptionalAll new private chats.
contactsBoolOptionalAll private chats with contacts.
non_contactsBoolOptionalAll private chats with non-contacts.
exclude_selectedBoolOptionalIf set, inverts the selection.
usersArray of longOptionalOnly private chats with the specified users.

Type: BusinessRecipients

Example:

$businessRecipients = ['_' => 'businessRecipients', 'existing_chats' => Bool, 'new_chats' => Bool, 'contacts' => Bool, 'non_contacts' => Bool, 'exclude_selected' => Bool, 'users' => [long, long]];