class Hamilton::Types::SharedUser

Overview

This object contains information about a user that was shared with the bot using a KeyboardButtonRequestUsers button.

Included Modules

Defined in:

types/shared_user.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 first_name : String | Nil #

First name of the user, if the name was requested by the bot.


def first_name=(first_name : String | Nil) #

First name of the user, if the name was requested by the bot.


def last_name : String | Nil #

Last name of the user, if the name was requested by the bot.


def last_name=(last_name : String | Nil) #

Last name of the user, if the name was requested by the bot.


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) | Nil #

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


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

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


def user_id : Int64 #

Identifier of the shared user. The bot may not have access to the user and could be unable to use this identifier, unless the user is already known to the bot by some other means.


def user_id=(user_id : Int64) #

Identifier of the shared user. The bot may not have access to the user and could be unable to use this identifier, unless the user is already known to the bot by some other means.


def username : String | Nil #

Username of the user, if the username was requested by the bot.


def username=(username : String | Nil) #

Username of the user, if the username was requested by the bot.