struct

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)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

clone
Source
copy_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)
Source
first_name
last_name
photo
user_id
username