class
Hamilton::Types::SharedUser
- Hamilton::Types::SharedUser
- Reference
- Object
Overview
This object contains information about a user that was shared with the bot using a KeyboardButtonRequestUsers button.
Included Modules
- Hamilton::Types::Common
- JSON::Serializable
Defined in:
types/shared_user.crConstructors
- .new(pull : JSON::PullParser)
- .new(params)
- .new(*, __pull_for_json_serializable pull : JSON::PullParser)
- .new(**params)
Instance Method Summary
-
#first_name : String | Nil
First name of the user, if the name was requested by the bot.
-
#first_name=(first_name : String | Nil)
First name of the user, if the name was requested by the bot.
-
#last_name : String | Nil
Last name of the user, if the name was requested by the bot.
-
#last_name=(last_name : String | Nil)
Last name of the user, if the name was requested by the bot.
-
#non_nil_fields : Array(String)
List of available non-nil fields.
-
#non_nil_fields=(non_nil_fields : Array(String))
List of available non-nil fields.
-
#photo : Array(Hamilton::Types::PhotoSize) | Nil
Available sizes of the chat photo, if the photo was requested by the bot.
-
#photo=(photo : Array(Hamilton::Types::PhotoSize) | Nil)
Available sizes of the chat photo, if the photo was requested by the bot.
-
#user_id : Int64
Identifier of the shared user.
-
#user_id=(user_id : Int64)
Identifier of the shared user.
-
#username : String | Nil
Username of the user, if the username was requested by the bot.
-
#username=(username : String | Nil)
Username of the user, if the username was requested by the bot.
Instance methods inherited from class Reference
==(other : Hamilton::Any)
==
Instance methods inherited from class Object
===(other : Hamilton::Any)
===
Constructor Detail
Instance Method Detail
First name of the user, if the name was requested by the bot.
Last name of the user, if the name was requested by the bot.
Available sizes of the chat photo, if the photo was requested by the bot.
Available sizes of the chat photo, if the photo was requested by the bot.
Identifier of the shared user. The bot may not have access to the user and could be unable to use this identifier, unless the user is already known to the bot by some other means.
Identifier of the shared user. The bot may not have access to the user and could be unable to use this identifier, unless the user is already known to the bot by some other means.
Username of the user, if the username was requested by the bot.