Link Search Menu Expand Document

Constructor: inputBusinessBotRecipients

Back to constructors index

Specifies the private chats that a connected business bot » may interact with.

Attributes:

NameTypeRequiredDescription
existing_chatsBoolOptionalSelects all existing private chats.
new_chatsBoolOptionalSelects all new private chats.
contactsBoolOptionalSelects all private chats with contacts.
non_contactsBoolOptionalSelects all private chats with non-contacts.
exclude_selectedBoolOptionalIf set, then all private chats except the ones selected by existing_chats, new_chats, contacts, non_contacts and users are chosen.
Note that if this flag is set, any values passed in exclude_users will be merged and moved into users by the server.
usersArray of Username, chat ID, Update, Message or InputUserOptionalExplicitly selected private chats.
exclude_usersArray of Username, chat ID, Update, Message or InputUserOptionalIdentifiers of private chats that are always excluded.

Type: InputBusinessBotRecipients

Example:

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