class Tourmaline::Chat

Overview

This object represents a Telegram user or bot.

Included Modules

Defined in:

tourmaline/models/chat.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def can_set_sticker_set : Bool | Nil #

[View source]
def chat_photo : ChatPhoto | Nil #

[View source]
def delete_chat_sticker_set #

[View source]
def delete_photo #

[View source]
def description : String | Nil #

[View source]
def edit_live_location(latitude, longitude, **kwargs) #

[View source]
def first_name : String | Nil #

[View source]
def id : Int64 #

[View source]
def invite_link #

[View source]
def last_name : String | Nil #

[View source]
def member_count #

[View source]
def permissions : ChatPermissions | Nil #

[View source]
def pinned_message : Message | Nil #

[View source]
def send_animation(animation, **kwargs) #

[View source]
def send_audio(audio, **kwargs) #

[View source]
def send_chat_action(action : ChatAction) #

[View source]
def send_contact(phone_number, first_name, **kwargs) #

[View source]
def send_document(document, **kwargs) #

[View source]
def send_game(game_name, **kwargs) #

[View source]
def send_invoice(invoice, **kwargs) #

[View source]
def send_location(latitude, longitude, **kwargs) #

[View source]
def send_media_group(media, **kwargs) #

[View source]
def send_message(*args, **kwargs) #

[View source]
def send_photo(photo, **kwargs) #

[View source]
def send_sticker(sticker, **kwargs) #

[View source]
def send_venue(latitude, longitude, title, address, **kwargs) #

[View source]
def send_video(video, **kwargs) #

[View source]
def send_video_note(video_note, **kwargs) #

[View source]
def send_voice(voice, **kwargs) #

[View source]
def set_administrator_custom_title(user, custom_title) #

[View source]
def set_description(description : Nil | String) #

[View source]
def set_permissions(permissions) #

[View source]
def set_photo(photo) #

[View source]
def set_sticker_set(set_name : Nil | String) #

[View source]
def set_title(title : Nil | String) #

[View source]
def slow_mode_delay : Int32 | Nil #

[View source]
def sticker_set_name : String | Nil #

[View source]
def stop_live_location(**kwargs) #

[View source]
def title : String | Nil #

[View source]
def type : String #

[View source]
def unpin_message #

[View source]
def username : String | Nil #

[View source]