Skip to content

class Tourmaline::KeyboardButtonRequestUser
inherits Reference #

This object defines the criteria used to request a suitable user. The identifier of the selected user will be shared with the bot when the corresponding button is pressed. More about requesting users: https://core.telegram.org/bots/features#chat-and-user-selection

Included modules

JSON::Serializable

Constructors#

.new(pull : JSON::PullParser) #

View source

.new(request_id, user_is_bot : Bool? = nil, user_is_premium : Bool? = nil) #

View source

Methods#

#request_id : Int32 | Int64 #

Signed 32-bit identifier of the request, which will be received back in the UserShared object. Must be unique within the message

View source

#request_id=(request_id : Int32 | Int64) #

Signed 32-bit identifier of the request, which will be received back in the UserShared object. Must be unique within the message

View source

#user_is_bot=(user_is_bot : Bool?) #

Optional. Pass True to request a bot, pass False to request a regular user. If not specified, no additional restrictions are applied.

View source

#user_is_bot? : Bool? #

Optional. Pass True to request a bot, pass False to request a regular user. If not specified, no additional restrictions are applied.

View source

#user_is_premium=(user_is_premium : Bool?) #

Optional. Pass True to request a premium user, pass False to request a non-premium user. If not specified, no additional restrictions are applied.

View source

#user_is_premium? : Bool? #

Optional. Pass True to request a premium user, pass False to request a non-premium user. If not specified, no additional restrictions are applied.

View source