Telegram::KeyboardButtonRequestChat
Inherits JSON::Serializable < Struct < Value < Object
Telegram API type: KeyboardButtonRequestChat This object defines the criteria used to request a suitable chat. Information about the selected chat will be shared with the bot when the corresponding button is pressed. The bot will be granted requested rights in the chat if appropriate. More about requesting chats: https://core.telegram.org/bots/features#chat-and-user-selection.
Constructors
new(request_id : Int64, chat_is_channel : Bool, chat_is_forum : Bool | Nil = nil, chat_has_username : Bool | Nil = nil, chat_is_created : Bool | Nil = nil, user_administrator_rights : ChatAdministratorRights | Nil = nil, bot_administrator_rights : ChatAdministratorRights | Nil = nil, bot_is_member : Bool | Nil = nil, request_title : Bool | Nil = nil, request_username : Bool | Nil = nil, request_photo : Bool | Nil = nil)
Sourcenew(pull : JSON::PullParser)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
bot_administrator_rights
bot_is_member
chat_has_username
chat_is_channel
chat_is_created
chat_is_forum
clone
Sourcecopy_with(request_id _request_id = @request_id, chat_is_channel _chat_is_channel = @chat_is_channel, chat_is_forum _chat_is_forum = @chat_is_forum, chat_has_username _chat_has_username = @chat_has_username, chat_is_created _chat_is_created = @chat_is_created, user_administrator_rights _user_administrator_rights = @user_administrator_rights, bot_administrator_rights _bot_administrator_rights = @bot_administrator_rights, bot_is_member _bot_is_member = @bot_is_member, request_title _request_title = @request_title, request_username _request_username = @request_username, request_photo _request_photo = @request_photo)
Sourcerequest_id
request_photo
request_title
request_username
user_administrator_rights