class Tourmaline::ChatJoinRequest

Overview

Represents a join request sent to a chat.

Included Modules

Defined in:

tourmaline/types/api.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(chat : Tourmaline::Chat, from : Tourmaline::User, user_chat_id : Int32 | Int64, date : Time, bio : String | Nil = nil, invite_link : Tourmaline::ChatInviteLink | Nil = nil) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def bio : String | Nil #

Optional. Bio of the user.


[View source]
def bio=(bio : String | Nil) #

Optional. Bio of the user.


[View source]
def chat : Tourmaline::Chat #

Chat to which the request was sent


[View source]
def chat=(chat : Tourmaline::Chat) #

Chat to which the request was sent


[View source]
def date : Time #

[View source]
def date=(date : Time) #

[View source]
def from : Tourmaline::User #

User that sent the join request


[View source]
def from=(from : Tourmaline::User) #

User that sent the join request


[View source]
def invite_link : Tourmaline::ChatInviteLink | Nil #

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


[View source]
def invite_link=(invite_link : Tourmaline::ChatInviteLink | Nil) #

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


[View source]
def user_chat_id : Int32 | Int64 #

Identifier of a private chat with the user who sent the join request. 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. 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.


[View source]
def user_chat_id=(user_chat_id : Int32 | Int64) #

Identifier of a private chat with the user who sent the join request. 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. 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.


[View source]