Telegram::SharedUser
Inherits JSON::Serializable < Struct < Value < Object
Telegram API type: SharedUser This object contains information about a user that was shared with the bot using a KeyboardButtonRequestUsers button.
Constructors
new(user_id : Int32 | Int64, first_name : String | Nil = nil, last_name : String | Nil = nil, username : String | Nil = nil, photo : Array(PhotoSize) | Nil = nil)
Sourcenew(pull : JSON::PullParser)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
clone
Sourcecopy_with(user_id _user_id = @user_id, first_name _first_name = @first_name, last_name _last_name = @last_name, username _username = @username, photo _photo = @photo)
Sourcefirst_name
last_name
photo
user_id
username