Link Search Menu Expand Document

Constructor: inputBusinessRecipients

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 Username, chat ID, Update, Message or InputUserOptionalOnly private chats with the specified users.

Type: InputBusinessRecipients

Example:

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