class Tourmaline::Chat

Overview

This object represents a Telegram user or bot.

Included Modules

Defined in:

tourmaline/extra/paginated_keyboard.cr
tourmaline/extra/routed_menu.cr
tourmaline/models/chat.cr

Constructors

Instance Method Summary

Instance methods inherited from module Tourmaline::Model

client : Tourmaline::Client client, client=(client : Tourmaline::Client) client=, client? : Tourmaline::Client | Nil client?, finish_init(client : Tourmaline::Client) finish_init

Constructor Detail

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

[View source]

Instance Method Detail

def active_usernames : Array(String) #

[View source]
def bio : String | Nil #

[View source]
def can_set_sticker_set : Bool | Nil #

[View source]
def channel? #

[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 emoji_status_custom_emoji_id : String | Nil #

[View source]
def first_name : String | Nil #

[View source]
def forum? : Bool | Nil #

[View source]
def group? #

[View source]
def has_private_forwards : Bool | Nil #

[View source]
def has_protected_content : Bool | Nil #

[View source]
def has_restricted_voice_and_video_messages : Bool | Nil #

[View source]
def id : Int64 #

[View source]
def invite_link #

[View source]
def join_by_request : Bool | Nil #

[View source]
def join_to_send_messages : Bool | Nil #

[View source]
def last_name : String | Nil #

[View source]
def linked_chat_id : Int64 | Nil #

[View source]
def location : ChatLocation | Nil #

[View source]
def member_count #

[View source]
def message_auto_delete_time : Int32 | Nil #

[View source]
def name #

[View source]
def permissions : ChatPermissions | Nil #

[View source]
def photo : ChatPhoto | Nil #

[View source]
def pinned_message : Message | Nil #

[View source]
def private? #

[View source]
def scam? : Bool | 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_menu(menu : RoutedMenu, **kwargs) #

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

[View source]
def send_paginated_keyboard(keyboard : PaginatedKeyboard, **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 supergroup? #

[View source]
def title : String | Nil #

[View source]
def type : Type #

[View source]
def unpin_message #

[View source]
def username : String | Nil #

[View source]
def verified? : Bool | Nil #

[View source]