KeyboardButtonRequestChat constructor

const KeyboardButtonRequestChat({
  1. required int requestId,
  2. required bool chatIsChannel,
  3. bool? chatIsForum,
  4. bool? chatHasUsername,
  5. bool? chatIsCreated,
  6. ChatAdministratorRights? userAdministratorRights,
  7. ChatAdministratorRights? botAdministratorRights,
  8. bool? botIsMember,
  9. bool? requestPhoto,
  10. bool? requestTitle,
  11. bool? requestUsername,
})

This object defines the criteria used to request a suitable chat. The identifier of the selected chat will be shared with the bot when the corresponding button is pressed.

Implementation

const KeyboardButtonRequestChat({
  required this.requestId,
  required this.chatIsChannel,
  this.chatIsForum,
  this.chatHasUsername,
  this.chatIsCreated,
  this.userAdministratorRights,
  this.botAdministratorRights,
  this.botIsMember,
  this.requestPhoto,
  this.requestTitle,
  this.requestUsername,
});