class Hamilton::Types::ChatJoinRequest

Overview

Represents a join request sent to a chat.

Included Modules

Defined in:

types/chat_join_request.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 bio : String | Nil #

Bio of the user.


def bio=(bio : String | Nil) #

Bio of the user.


Chat to which the request was sent.


def chat=(chat : Hamilton::Types::Chat) #

Chat to which the request was sent.


def date : Int32 #

Date the request was sent in Unix time.


def date=(date : Int32) #

Date the request was sent in Unix time.


def invite_link : Hamilton::Types::ChatInviteLink | Nil #

Chat invite link that was used by the user to send the join request.


def invite_link=(invite_link : Hamilton::Types::ChatInviteLink | Nil) #

Chat invite link that was used by the user to send the join request.


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.


User that sent the join request.


def user=(user : Hamilton::Types::User) #

User that sent the join request.


def user_chat_id : Int32 #

Identifier of a private chat with the user who sent the join request. The bot can use this identifier for 5 minutes to send messages until the join request is processed, assuming no other administrator contacted the user.


def user_chat_id=(user_chat_id : Int32) #

Identifier of a private chat with the user who sent the join request. The bot can use this identifier for 5 minutes to send messages until the join request is processed, assuming no other administrator contacted the user.