class Hamilton::Types::ChatShared

Overview

This object contains information about a chat that was shared with the bot using a KeyboardButtonRequestChat button.

Included Modules

Defined in:

types/chat_shared.cr

Constructors

Instance Method Summary

Instance methods inherited from class Reference

==(other : Hamilton::Any) ==

Instance methods inherited from class Object

===(other : Hamilton::Any) ===

Constructor Detail

def self.new(pull : JSON::PullParser) #

def self.new(params) #

def self.new(*, __pull_for_json_serializable pull : JSON::PullParser) #

def self.new(**params) #

Instance Method Detail

def chat_id : Int32 #

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.


def chat_id=(chat_id : Int32) #

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.


def non_nil_fields : Array(String) #

List of available non-nil fields.


def non_nil_fields=(non_nil_fields : Array(String)) #

List of available non-nil fields.


def photo : Array(Hamilton::Types::PhotoSize) #

Available sizes of the chat photo, if the photo was requested by the bot.


def photo=(photo : Array(Hamilton::Types::PhotoSize)) #

Available sizes of the chat photo, if the photo was requested by the bot.


def request_id : Int32 #

Identifier of the request.


def request_id=(request_id : Int32) #

Identifier of the request.


def title : String | Nil #

Title of the chat, if the title was requested by the bot.


def title=(title : String | Nil) #

Title of the chat, if the title was requested by the bot.


def username : String | Nil #

Username of the chat, if the username was requested by the bot and available.


def username=(username : String | Nil) #

Username of the chat, if the username was requested by the bot and available.