class Tourmaline::Chat
- Tourmaline::Chat
- Reference
- Object
Overview
This object represents a Telegram user or bot.
Included Modules
- JSON::Serializable
- Tourmaline::Model
Defined in:
tourmaline/extra/paginated_keyboard.crtourmaline/extra/routed_menu.cr
tourmaline/models/chat.cr
Constructors
Instance Method Summary
- #active_usernames : Array(String)
- #bio : String | Nil
- #can_set_sticker_set : Bool | Nil
- #channel?
- #delete_chat_sticker_set
- #delete_photo
- #description : String | Nil
- #edit_live_location(latitude, longitude, **kwargs)
- #emoji_status_custom_emoji_id : String | Nil
- #first_name : String | Nil
- #forum? : Bool | Nil
- #group?
- #has_private_forwards : Bool | Nil
- #has_protected_content : Bool | Nil
- #has_restricted_voice_and_video_messages : Bool | Nil
- #id : Int64
- #invite_link
- #join_by_request : Bool | Nil
- #join_to_send_messages : Bool | Nil
- #last_name : String | Nil
- #linked_chat_id : Int64 | Nil
- #location : ChatLocation | Nil
- #member_count
- #message_auto_delete_time : Int32 | Nil
- #name
- #permissions : ChatPermissions | Nil
- #photo : ChatPhoto | Nil
- #pinned_message : Message | Nil
- #private?
- #scam? : Bool | Nil
- #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_paginated_keyboard(keyboard : PaginatedKeyboard, **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 : Nil | String)
- #set_permissions(permissions)
- #set_photo(photo)
- #set_sticker_set(set_name : Nil | String)
- #set_title(title : Nil | String)
- #slow_mode_delay : Int32 | Nil
- #sticker_set_name : String | Nil
- #stop_live_location(**kwargs)
- #supergroup?
- #title : String | Nil
- #type : Type
- #unpin_message
- #username : String | Nil
- #verified? : Bool | Nil