class Tourmaline::ChatInviteLink

Overview

Represents an invite link for a chat.

Included Modules

Defined in:

tourmaline/types/api.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(invite_link : String, creator : Tourmaline::User, creates_join_request : Bool, is_primary : Bool, is_revoked : Bool, name : String | Nil = nil, expire_date : Int32 | Int64 | Nil = nil, member_limit : Int32 | Int64 | Nil = nil, pending_join_request_count : Int32 | Int64 | Nil = nil) #

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

[View source]

Instance Method Detail

def creates_join_request=(creates_join_request : Bool) #

True, if users joining the chat via the link need to be approved by chat administrators


[View source]
def creates_join_request? : Bool #

True, if users joining the chat via the link need to be approved by chat administrators


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

Creator of the link


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

Creator of the link


[View source]
def expire_date : Time | Nil #

[View source]
def expire_date=(expire_date : Time | Nil) #

[View source]
def invite_link : String #

The invite link. If the link was created by another chat administrator, then the second part of the link will be replaced with "...".


[View source]
def invite_link=(invite_link : String) #

The invite link. If the link was created by another chat administrator, then the second part of the link will be replaced with "...".


[View source]
def is_primary=(is_primary : Bool) #

True, if the link is primary


[View source]
def is_primary? : Bool #

True, if the link is primary


[View source]
def is_revoked=(is_revoked : Bool) #

True, if the link is revoked


[View source]
def is_revoked? : Bool #

True, if the link is revoked


[View source]
def member_limit : Int32 | Int64 | Nil #

Optional. The maximum number of users that can be members of the chat simultaneously after joining the chat via this invite link; 1-99999


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

Optional. The maximum number of users that can be members of the chat simultaneously after joining the chat via this invite link; 1-99999


[View source]
def name : String | Nil #

Optional. Invite link name


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

Optional. Invite link name


[View source]
def pending_join_request_count : Int32 | Int64 | Nil #

Optional. Number of pending join requests created using this link


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

Optional. Number of pending join requests created using this link


[View source]