class
Hamilton::Types::ChatShared
- Hamilton::Types::ChatShared
- Reference
- Object
Overview
This object contains information about a chat that was shared with the bot using a KeyboardButtonRequestChat button.
Included Modules
- Hamilton::Types::Common
- JSON::Serializable
Defined in:
types/chat_shared.crConstructors
- .new(pull : JSON::PullParser)
- .new(params)
- .new(*, __pull_for_json_serializable pull : JSON::PullParser)
- .new(**params)
Instance Method Summary
-
#chat_id : Int32
Identifier of the shared chat.
-
#chat_id=(chat_id : Int32)
Identifier of the shared chat.
-
#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)
Available sizes of the chat photo, if the photo was requested by the bot.
-
#photo=(photo : Array(Hamilton::Types::PhotoSize))
Available sizes of the chat photo, if the photo was requested by the bot.
-
#request_id : Int32
Identifier of the request.
-
#request_id=(request_id : Int32)
Identifier of the request.
-
#title : String | Nil
Title of the chat, if the title was requested by the bot.
-
#title=(title : String | Nil)
Title of the chat, if the title was requested by the bot.
-
#username : String | Nil
Username of the chat, if the username was requested by the bot and available.
-
#username=(username : String | Nil)
Username of the chat, if the username was requested by the bot and available.
Instance methods inherited from class Reference
==(other : Hamilton::Any)
==
Instance methods inherited from class Object
===(other : Hamilton::Any)
===
Constructor Detail
Instance Method Detail
Identifier of the shared chat. The bot may not have access to the chat and could be unable to use this identifier, unless the chat is already known to the bot by some other means.
Identifier of the shared chat. The bot may not have access to the chat and could be unable to use this identifier, unless the chat is already known to the bot by some other means.
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.
Username of the chat, if the username was requested by the bot and available.
Username of the chat, if the username was requested by the bot and available.