Skip to content

Chat

class Tourmaline::Chat
inherits Reference #

This object represents a Telegram user or bot.##

Included modules#

JSON::Serializable Tourmaline::Model

Class methods#

.new(pull : JSON::PullParser) #

Methods#

#bio : String? #

#can_set_sticker_set : Bool? #

#channel? #

#delete_chat_sticker_set #

#delete_photo #

#description : String? #

#edit_live_location(latitude, longitude, **kwargs) #

#first_name : String? #

#group? #

#id : Int64 #

#invite_link #

#last_name : String? #

#linked_chat_id : Int64? #

#location : ChatLocation? #

#member_count #

#name #

#permissions : ChatPermissions? #

#photo : ChatPhoto? #

#pinned_message : Message? #

#private? #

#send_animation(animation, **kwargs) #

#send_audio(audio, **kwargs) #

#send_chat_action(action : ChatAction) #

#send_contact(phone_number, first_name, **kwargs) #

#send_document(document, **kwargs) #

#send_game(game_name, **kwargs) #

#send_invoice(invoice, **kwargs) #

#send_location(latitude, longitude, **kwargs) #

#send_media_group(media, **kwargs) #

#send_menu(menu : RoutedMenu, **kwargs) #

#send_message(*args, **kwargs) #

#send_photo(photo, **kwargs) #

#send_sticker(sticker, **kwargs) #

#send_venue(latitude, longitude, title, address, **kwargs) #

#send_video(video, **kwargs) #

#send_video_note(video_note, **kwargs) #

#send_voice(voice, **kwargs) #

#set_administrator_custom_title(user, custom_title) #

#set_description(description) #

#set_permissions(permissions) #

#set_photo(photo) #

#set_sticker_set(set_name) #

#set_title(title) #

#slow_mode_delay : Int32? #

#sticker_set_name : String? #

#stop_live_location(**kwargs) #

#supergroup? #

#title : String? #

#type : Type #

#unpin_message #

#username : String? #