class
Hamilton::Types::User
- Hamilton::Types::User
- Reference
- Object
Overview
This object represents a Telegram user or bot.
Included Modules
- Hamilton::Types::Common
- JSON::Serializable
Defined in:
types/user.crConstructors
- .new(pull : JSON::PullParser)
- .new(params)
- .new(*, __pull_for_json_serializable pull : JSON::PullParser)
- .new(**params)
Instance Method Summary
-
#added_to_attachment_menu : Bool | Nil
True, if this user added the bot to the attachment menu
-
#added_to_attachment_menu=(added_to_attachment_menu : Bool | Nil)
True, if this user added the bot to the attachment menu
-
#can_connect_to_business : Bool | Nil
True, if the bot can be connected to a Telegram Business account to receive its messages.
-
#can_connect_to_business=(can_connect_to_business : Bool | Nil)
True, if the bot can be connected to a Telegram Business account to receive its messages.
-
#can_join_groups : Bool | Nil
True, if the bot can be invited to groups.
-
#can_join_groups=(can_join_groups : Bool | Nil)
True, if the bot can be invited to groups.
-
#can_read_all_group_messages : Bool | Nil
True, if privacy mode is disabled for the bot.
-
#can_read_all_group_messages=(can_read_all_group_messages : Bool | Nil)
True, if privacy mode is disabled for the bot.
-
#first_name : String
User's or bot's first name.
-
#first_name=(first_name : String)
User's or bot's first name.
-
#has_main_web_app : Bool | Nil
True, if the bot has a main Web App.
-
#has_main_web_app=(has_main_web_app : Bool | Nil)
True, if the bot has a main Web App.
-
#id : Int64
Unique identifier for this user or bot.
-
#id=(id : Int64)
Unique identifier for this user or bot.
-
#is_bot : Bool
True, if this user is a bot.
-
#is_bot=(is_bot : Bool)
True, if this user is a bot.
-
#is_premium : Bool | Nil
True, if this user is a Telegram Premium user.
-
#is_premium=(is_premium : Bool | Nil)
True, if this user is a Telegram Premium user.
-
#language_code : String | Nil
IETF language tag of the user's language.
-
#language_code=(language_code : String | Nil)
IETF language tag of the user's language.
-
#last_name : String | Nil
User's or bot's last name.
-
#last_name=(last_name : String | Nil)
User's or bot's last name.
-
#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.
-
#supports_inline_queries : Bool | Nil
True, if the bot supports inline queries.
-
#supports_inline_queries=(supports_inline_queries : Bool | Nil)
True, if the bot supports inline queries.
-
#username : String | Nil
User's or bot's username.
-
#username=(username : String | Nil)
User's or bot's username.
Instance methods inherited from class Reference
==(other : Hamilton::Any)
==
Instance methods inherited from class Object
===(other : Hamilton::Any)
===
Constructor Detail
Instance Method Detail
True, if the bot can be connected to a Telegram Business account to receive its messages. Returned only in getMe.
True, if the bot can be connected to a Telegram Business account to receive its messages. Returned only in getMe.
True, if the bot can be invited to groups. Returned only in getMe.
True, if the bot can be invited to groups. Returned only in getMe.
True, if privacy mode is disabled for the bot. Returned only in getMe.
True, if privacy mode is disabled for the bot. Returned only in getMe.
True, if the bot has a main Web App. Returned only in getMe.
True, if the bot supports inline queries. Returned only in getMe.
True, if the bot supports inline queries. Returned only in getMe.