class Telegram::API::User
- Telegram::API::User
- Telegram::API::Type
- Reference
- Object
Overview
This object represents a Telegram user or bot.
Defined in:
telegram/api/generated/types.crtelegram/api/overrides/user.cr
Constructors
- .new(id : Int64, is_bot : Bool, first_name : String, last_name : String | Nil = nil, username : String | Nil = nil, language_code : String | 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)
This object represents a Telegram user or bot.
Instance Method Summary
- #add_sticker_to_set(name, png_sticker, emojis, mask_position = nil)
-
#can_join_groups : Bool | Nil
Optional.
-
#can_join_groups=(can_join_groups : Bool | Nil)
Optional.
-
#can_read_all_group_messages : Bool | Nil
Optional.
-
#can_read_all_group_messages=(can_read_all_group_messages : Bool | Nil)
Optional.
- #create_new_sticker_set(name, title, png_sticker, emojis, **kwargs)
- #deleted?
-
#first_name : String
User's or bot's first name
-
#first_name=(first_name : String)
User's or bot's first name
- #full_name
- #get_game_high_scores(**kwargs)
-
#id : Int64
Unique identifier for this user or bot.
-
#id=(id : Int64)
Unique identifier for this user or bot.
- #inline_mention(full = false)
-
#is_bot : Bool
True, if this user is a bot
-
#is_bot=(is_bot : Bool)
True, if this user is a bot
-
#language_code : String | Nil
Optional.
-
#language_code=(language_code : String | Nil)
Optional.
-
#last_name : String | Nil
Optional.
-
#last_name=(last_name : String | Nil)
Optional.
- #profile_photos(offset = nil, limit = nil)
- #set_game_score(score, **kwargs)
-
#supports_inline_queries : Bool | Nil
Optional.
-
#supports_inline_queries=(supports_inline_queries : Bool | Nil)
Optional.
- #upload_sticker_file(png_sticker)
-
#username : String | Nil
Optional.
-
#username=(username : String | Nil)
Optional.
Instance methods inherited from class Telegram::API::Type
==(other)
==,
client
client
Constructor methods inherited from class Telegram::API::Type
new(pull : JSON::PullParser)
new
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.