KeyboardButtonRequestChat class

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.

https://core.telegram.org/bots/api#keyboardbuttonrequestchat

Constructors

KeyboardButtonRequestChat({required int requestId, required bool chatIsChannel, bool? chatIsForum, bool? chatHasUsername, bool? chatIsCreated, ChatAdministratorRights? userAdministratorRights, ChatAdministratorRights? botAdministratorRights, bool? botIsMember, bool? requestPhoto, bool? requestTitle, 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.
const
KeyboardButtonRequestChat.fromJson(Map<String, dynamic> json)
Creates a KeyboardButtonRequestChat from JSON object
factory

Properties

botAdministratorRights ChatAdministratorRights?
Optional. A JSON-serialized object listing the required administrator rights of the bot in the chat. The rights must be a subset of user_administrator_rights. If not specified, no additional restrictions are applied.
final
botIsMember bool?
Optional. Pass True to request a chat with the bot as a member. Otherwise, no additional restrictions are applied.
final
chatHasUsername bool?
Optional. Pass True to request a supergroup or a channel with a username, pass False to request a chat without a username. If not specified, no additional restrictions are applied.
final
chatIsChannel bool
Pass True to request a channel chat, pass False to request a group or a supergroup chat.
final
chatIsCreated bool?
Optional. Pass True to request a chat owned by the user. Otherwise, no additional restrictions are applied.
final
chatIsForum bool?
Optional. Pass True to request a forum supergroup, pass False to request a non-forum chat. If not specified, no additional restrictions are applied.
final
hashCode int
The hash code for this object.
no setterinherited
requestId int
Signed 32-bit identifier of the request
final
requestPhoto bool?
Optional. Pass True to request the chat's photo
final
requestTitle bool?
Optional. Pass True to request the chat's title
final
requestUsername bool?
Optional. Pass True to request the chat's username
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
userAdministratorRights ChatAdministratorRights?
Optional. A JSON-serialized object listing the required administrator rights of the user in the chat. If not specified, no additional restrictions are applied.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts a KeyboardButtonRequestChat to JSON object
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited