class Tourmaline::User
- Tourmaline::User
- Reference
- Object
Overview
This object represents a Telegram user or bot.
Included Modules
- JSON::Serializable
Defined in:
tourmaline/types/api.crtourmaline/types/custom/user.cr
Constructors
- .new(id : Int32 | Int64, is_bot : Bool, first_name : String, last_name : String | Nil = nil, username : String | Nil = nil, language_code : String | Nil = nil, is_premium : Bool | Nil = nil, added_to_attachment_menu : Bool | Nil = nil, can_join_groups : Bool | Nil = nil, can_read_all_group_messages : Bool | Nil = nil, supports_inline_queries : Bool | Nil = nil)
- .new(pull : JSON::PullParser)
Instance Method Summary
-
#added_to_attachment_menu=(added_to_attachment_menu : Bool | Nil)
Optional.
-
#added_to_attachment_menu? : Bool | Nil
Optional.
-
#can_join_groups=(can_join_groups : Bool | Nil)
Optional.
-
#can_join_groups? : Bool | Nil
Optional.
-
#can_read_all_group_messages=(can_read_all_group_messages : Bool | Nil)
Optional.
-
#can_read_all_group_messages? : Bool | Nil
Optional.
-
#first_name : String
User's or bot's first name
-
#first_name=(first_name : String)
User's or bot's first name
- #full_name
-
#id : Int32 | Int64
Unique identifier for this user or bot.
-
#id=(id : Int32 | Int64)
Unique identifier for this user or bot.
- #inline_mention(name)
-
#is_bot=(is_bot : Bool)
True, if this user is a bot
-
#is_bot? : Bool
True, if this user is a bot
-
#is_premium=(is_premium : Bool | Nil)
Optional.
-
#is_premium? : Bool | Nil
Optional.
-
#language_code : String | Nil
Optional.
-
#language_code=(language_code : String | Nil)
Optional.
-
#last_name : String | Nil
Optional.
-
#last_name=(last_name : String | Nil)
Optional.
-
#supports_inline_queries=(supports_inline_queries : Bool | Nil)
Optional.
-
#supports_inline_queries? : Bool | Nil
Optional.
-
#username : String | Nil
Optional.
-
#username=(username : String | Nil)
Optional.
Constructor Detail
Instance Method Detail
Optional. True, if the bot can be invited to groups. Returned only in getMe.
Optional. True, if the bot can be invited to groups. Returned only in getMe.
Optional. True, if privacy mode is disabled for the bot. Returned only in getMe.
Optional. True, if privacy mode is disabled for the bot. Returned only in getMe.
Unique identifier for this user or bot. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a 64-bit integer or double-precision float type are safe for storing this identifier.
Unique identifier for this user or bot. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a 64-bit integer or double-precision float type are safe for storing this identifier.
Optional. IETF language tag of the user's language
Optional. True, if the bot supports inline queries. Returned only in getMe.
Optional. True, if the bot supports inline queries. Returned only in getMe.