Skip to content

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) #

View source

Methods#

#can_set_sticker_set : Bool? #

View source

#channel? #

View source

#delete_chat_sticker_set #

View source

#delete_photo #

View source

#description : String? #

View source

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

View source

#first_name : String? #

View source

#group? #

View source

#id : Int64 #

View source
View source

#is_scam? : Bool? #

USER API ONLY

View source

#is_verified? : Bool? #

USER API ONLY

View source

#last_name : String? #

View source

#linked_chat_id : Int64? #

View source

#member_count #

View source

#name #

View source

#permissions : ChatPermissions? #

View source

#pinned_message : Message? #

View source

#private? #

View source

#send_animation(animation, **kwargs) #

View source

#send_audio(audio, **kwargs) #

View source

#send_chat_action(action : ChatAction) #

View source

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

View source

#send_document(document, **kwargs) #

View source

#send_game(game_name, **kwargs) #

View source

#send_invoice(invoice, **kwargs) #

View source

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

View source

#send_media_group(media, **kwargs) #

View source

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

View source

#send_message(*args, **kwargs) #

View source

#send_photo(photo, **kwargs) #

View source

#send_sticker(sticker, **kwargs) #

View source

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

View source

#send_video(video, **kwargs) #

View source

#send_video_note(video_note, **kwargs) #

View source

#send_voice(voice, **kwargs) #

View source

#set_administrator_custom_title(user, custom_title) #

View source

#set_description(description) #

View source

#set_permissions(permissions) #

View source

#set_photo(photo) #

View source

#set_sticker_set(set_name) #

View source

#set_title(title) #

View source

#slow_mode_delay : Int32? #

View source

#sticker_set_name : String? #

View source

#stop_live_location(**kwargs) #

View source

#supergroup? #

View source

#title : String? #

View source

#type : Type #

View source

#unpin_message #

View source

#username : String? #

View source