KeyboardButtonTypeRequestChat constructor

const KeyboardButtonTypeRequestChat({
  1. required int id,
  2. required bool chatIsChannel,
  3. required bool restrictChatIsForum,
  4. required bool chatIsForum,
  5. required bool restrictChatHasUsername,
  6. required bool chatHasUsername,
  7. required bool chatIsCreated,
  8. ChatAdministratorRights? userAdministratorRights,
  9. ChatAdministratorRights? botAdministratorRights,
  10. required bool botIsMember,
})

A button that requests a chat to be shared by the current user; available only in private chats. Use the method shareChatWithBot to complete the request

Implementation

const KeyboardButtonTypeRequestChat({
  required this.id,
  required this.chatIsChannel,
  required this.restrictChatIsForum,
  required this.chatIsForum,
  required this.restrictChatHasUsername,
  required this.chatHasUsername,
  required this.chatIsCreated,
  this.userAdministratorRights,
  this.botAdministratorRights,
  required this.botIsMember,
});