Raw.BusinessBotRecipients

Raw.BusinessBotRecipients

Specifies the private chats that a connected business bot may receive messages and interact with.

businessBotRecipients#b88cf373 flags:# existing_chats:flags.0?true new_chats:flags.1?true contacts:flags.2?true non_contacts:flags.3?true exclude_selected:flags.5?true users:flags.4?Vector<long> exclude_users:flags.6?Vector<long> = BusinessBotRecipients;
export namespace Raw {
  export class BusinessBotRecipients {
    constructor(params: {
      existingChats?: boolean;
      newChats?: boolean;
      contacts?: boolean;
      nonContacts?: boolean;
      excludeSelected?: boolean;
      users?: Array<bigint>;
      excludeUsers?: Array<bigint>;
    }) {}
  }
}
🚫

This is a types constructor, you can’t use it as method when call invoke.

Layer: 185
Constructor ID: 0xb88cf373

Property

  • existingChats : boolean or undefined

    Selects all existing private chats.

  • newChats : boolean or undefined

    Selects all new private chats.

  • contacts : boolean or undefined

    Selects all private chats with contacts.

  • nonContacts : boolean or undefined

    Selects all private chats with non-contacts.

  • excludeSelected : boolean or undefined

    If set, then all private chats except the ones selected by existingChats, newChats, contacts, nonContacts and users are chosen. note that if this flag is set, any values passed in excludeUsers will be merged and moved into users by the server, thus excludeUsers will always be empty.

  • users : Array of bigint or undefined

    Explicitly selected private chats.

  • excludeUsers : Array of bigint or undefined

    Identifiers of private chats that are always excluded.