Link Search Menu Expand Document

Constructor: businessBotRecipients

Back to constructors index

Specifies the private chats that a connected business bot » may receive messages and 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, thus exclude_users will always be empty.
usersArray of longOptionalExplicitly selected private chats.
exclude_usersArray of longOptionalIdentifiers of private chats that are always excluded.

Type: BusinessBotRecipients

Example:

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