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)
#
(pull : JSON::PullParser)
Methods#
#bio : String?
#
: String?
#can_set_sticker_set : Bool?
#
: Bool?
#channel?
#
#delete_chat_sticker_set
#
#delete_photo
#
#description : String?
#
: String?
#edit_live_location(latitude, longitude, **kwargs)
#
(latitude, longitude, **kwargs)
#first_name : String?
#
: String?
#group?
#
#id : Int64
#
: Int64
#invite_link
#
#last_name : String?
#
: String?
#linked_chat_id : Int64?
#
: Int64?
#location : ChatLocation?
#
: ChatLocation?
#member_count
#
#name
#
#permissions : ChatPermissions?
#
: ChatPermissions?
#photo : ChatPhoto?
#
: ChatPhoto?
#pinned_message : Message?
#
: Message?
#private?
#
#send_animation(animation, **kwargs)
#
(animation, **kwargs)
#send_audio(audio, **kwargs)
#
(audio, **kwargs)
#send_chat_action(action : ChatAction)
#
(action : ChatAction)
#send_contact(phone_number, first_name, **kwargs)
#
(phone_number, first_name, **kwargs)
#send_document(document, **kwargs)
#
(document, **kwargs)
#send_game(game_name, **kwargs)
#
(game_name, **kwargs)
#send_invoice(invoice, **kwargs)
#
(invoice, **kwargs)
#send_location(latitude, longitude, **kwargs)
#
(latitude, longitude, **kwargs)
#send_media_group(media, **kwargs)
#
(media, **kwargs)
#send_menu(menu : RoutedMenu, **kwargs)
#
(menu : RoutedMenu, **kwargs)
#send_message(*args, **kwargs)
#
(*args, **kwargs)
#send_photo(photo, **kwargs)
#
(photo, **kwargs)
#send_sticker(sticker, **kwargs)
#
(sticker, **kwargs)
#send_venue(latitude, longitude, title, address, **kwargs)
#
(latitude, longitude, title, address, **kwargs)
#send_video(video, **kwargs)
#
(video, **kwargs)
#send_video_note(video_note, **kwargs)
#
(video_note, **kwargs)
#send_voice(voice, **kwargs)
#
(voice, **kwargs)
#set_administrator_custom_title(user, custom_title)
#
(user, custom_title)
#set_description(description)
#
(description)
#set_permissions(permissions)
#
(permissions)
#set_photo(photo)
#
(photo)
#set_sticker_set(set_name)
#
(set_name)
#set_title(title)
#
(title)
#slow_mode_delay : Int32?
#
: Int32?
#sticker_set_name : String?
#
: String?
#stop_live_location(**kwargs)
#
(**kwargs)
#supergroup?
#
#title : String?
#
: String?
#type : Type
#
: Type
#unpin_message
#
#username : String?
#
: String?