class TD::Chat

Included Modules

Defined in:

telegram/types/chat.cr

Constructors

Instance Method Summary

Instance methods inherited from class TD::Base

extract_abstract_type(__json : JSON::Any) extract_abstract_type, extract_type(__json : JSON::Any, class_type : Class) extract_type

Macros inherited from class TD::Base

object_attributes(type) object_attributes, object_type(type) object_type

Constructor Detail

def self.new(id : Int64, type : TD::ChatType, title : String, photo : Union(TD::ChatPhotoInfo, Nil), permissions : TD::ChatPermissions, last_message : Union(TD::Message, Nil), positions : Array(TD::ChatPosition), message_sender_id : Union(TD::MessageSender, Nil), unread_count : Int32, last_read_inbox_message_id : Int64, last_read_outbox_message_id : Int64, unread_mention_count : Int32, notification_settings : TD::ChatNotificationSettings, message_ttl : Int32, theme_name : String, action_bar : Union(TD::ChatActionBar, Nil), video_chat : TD::VideoChat, pending_join_requests : Union(TD::ChatJoinRequestsInfo, Nil), reply_markup_message_id : Int64, draft_message : Union(TD::DraftMessage, Nil), client_data : String, has_protected_content : Bool = false, is_marked_as_unread : Bool = false, is_blocked : Bool = false, has_scheduled_messages : Bool = false, can_be_deleted_only_for_self : Bool = false, can_be_deleted_for_all_users : Bool = false, can_be_reported : Bool = false, default_disable_notification : Bool = false) #

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

[View source]
def self.new(__json : JSON::Any | Nil = nil) #

[View source]

Instance Method Detail

def action_bar : TD::ChatActionBar? #

def action_bar=(action_bar : TD::ChatActionBar | Nil) #

def can_be_deleted_for_all_users : Bool #

def can_be_deleted_for_all_users=(can_be_deleted_for_all_users : Bool) #

def can_be_deleted_only_for_self : Bool #

def can_be_deleted_only_for_self=(can_be_deleted_only_for_self : Bool) #

def can_be_reported : Bool #

def can_be_reported=(can_be_reported : Bool) #

def client_data : String #

def client_data=(client_data : String) #

def default_disable_notification : Bool #

def default_disable_notification=(default_disable_notification : Bool) #

def draft_message : TD::DraftMessage? #

def draft_message=(draft_message : Nil | TD::DraftMessage) #

def has_protected_content : Bool #

def has_protected_content=(has_protected_content : Bool) #

def has_scheduled_messages : Bool #

def has_scheduled_messages=(has_scheduled_messages : Bool) #

def id : Int64 #

def id=(id : Int64) #

def is_blocked : Bool #

def is_blocked=(is_blocked : Bool) #

def is_marked_as_unread : Bool #

def is_marked_as_unread=(is_marked_as_unread : Bool) #

def last_message : TD::Message? #

def last_message=(last_message : Nil | TD::Message) #

def last_read_inbox_message_id : Int64 #

def last_read_inbox_message_id=(last_read_inbox_message_id : Int64) #

def last_read_outbox_message_id : Int64 #

def last_read_outbox_message_id=(last_read_outbox_message_id : Int64) #

def message_sender_id : TD::MessageSender? #

def message_sender_id=(message_sender_id : TD::MessageSender | Nil) #

def message_ttl : Int32 #

def message_ttl=(message_ttl : Int32) #

def notification_settings : TD::ChatNotificationSettings #

def notification_settings=(notification_settings : TD::ChatNotificationSettings) #

def object_type : String #

def object_type=(object_type : String) #

def pending_join_requests : TD::ChatJoinRequestsInfo? #

def pending_join_requests=(pending_join_requests : Nil | TD::ChatJoinRequestsInfo) #

def permissions : TD::ChatPermissions #

def permissions=(permissions : TD::ChatPermissions) #

def photo : TD::ChatPhotoInfo? #

def photo=(photo : Nil | TD::ChatPhotoInfo) #

def positions : Array(TD::ChatPosition) #

def positions=(positions : Array(TD::ChatPosition)) #

def reply_markup_message_id : Int64 #

def reply_markup_message_id=(reply_markup_message_id : Int64) #

def theme_name : String #

def theme_name=(theme_name : String) #

def title : String #

def title=(title : String) #

def type : TD::ChatType #

def type=(type : TD::ChatType) #

def unread_count : Int32 #

def unread_count=(unread_count : Int32) #

def unread_mention_count : Int32 #

def unread_mention_count=(unread_mention_count : Int32) #

def video_chat : TD::VideoChat #

def video_chat=(video_chat : TD::VideoChat) #