class Tourmaline::Message
 
  - Tourmaline::Message
 - 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/message.cr
Constructors
Instance Method Summary
- #animation : Animation | Nil
 - #audio : Audio | Nil
 - #author_signature : String | Nil
 - #automatic_forward? : Bool | Nil
 - #caption : String | Nil
 - #caption_entities : Array(MessageEntity)
 - #channel_chat_created : Bool | Nil
 - #chat : Chat
 - #chats
 - #chats(&block : Chat -> )
 - #connected_website : String | Nil
 - #contact : Contact | Nil
 - #date : Time
 - 
        #delete
        
          
Delete the message.
 - #delete_chat_photo : Bool | Nil
 - #dice : Dice | Nil
 - #document : Document | Nil
 - 
        #edit_caption(caption, **kwargs)
        
          
Edits the message's caption.
 - #edit_date : Time | Nil
 - 
        #edit_live_location(latitude, longitude, **kwargs)
        
          
Edits the message's live_location.
 - 
        #edit_media(media, **kwargs)
        
          
Edits the message's media.
 - 
        #edit_reply_markup(reply_markup)
        
          
Set the reply markup for the message.
 - 
        #edit_text(text, **kwargs)
        
          
Edits the text of a message.
 - #entities : Array(MessageEntity)
 - #file
 - #forum_topic_closed : ForumTopicClosed | Nil
 - #forum_topic_created : ForumTopicCreated | Nil
 - #forum_topic_reopened : ForumTopicReopened | Nil
 - 
        #forward(to_chat, **kwargs)
        
          
Forward the message to another chat.
 - #forward_date : Time | Nil
 - #forward_from : User | Nil
 - #forward_from_chat : Chat | Nil
 - #forward_from_message_id : Int64 | Nil
 - #forward_sender_name : String | Nil
 - #forward_signature : String | Nil
 - 
        #forwards : Int32 | Nil
        
          
USER API ONLY
 - #from : User | Nil
 - #game : Game | Nil
 - #group_chat_created : Bool | Nil
 - #has_protected_content? : Bool | Nil
 - #invoice : Invoice | Nil
 - #left_chat_member : User | Nil
 - #link
 - #location : Location | Nil
 - #media_group_id : String | Nil
 - #message_auto_delete_timer_changed : MessageAutoDeleteTimerChanged | Nil
 - #message_id : Int64
 - #message_thread_id : Int64 | Nil
 - #migrate_from_chat_id : Int64 | Nil
 - #migrate_to_chat_id : Int64 | Nil
 - #new_chat_members : Array(User)
 - #new_chat_photo : Array(PhotoSize)
 - #new_chat_title : String | Nil
 - 
        #outgoing? : Bool | Nil
        
          
USER API ONLY
 - #passport_data : PassportData | Nil
 - #photo : Array(PhotoSize)
 - 
        #pin(**kwargs)
        
          
Pin the message.
 - #pinned_message : Message | Nil
 - #poll : Poll | Nil
 - #proximity_alert_triggered : ProximityAlertTriggered | Nil
 - #raw_caption(parse_mode : ParseMode = :markdown, escape : Bool = false)
 - #raw_text(parse_mode : ParseMode = :markdown, escape : Bool = false)
 - 
        #reply(message, **kwargs)
        
          
Reply to a message.
 - #reply_markup : InlineKeyboardMarkup | Nil
 - #reply_message : Message | Nil
 - #reply_with_animation(*args, **kwargs)
 - #reply_with_audio(*args, **kwargs)
 - #reply_with_basketball(*args, **kwargs)
 - #reply_with_contact(*args, **kwargs)
 - #reply_with_dart(*args, **kwargs)
 - #reply_with_dice(*args, **kwargs)
 - #reply_with_document(*args, **kwargs)
 - #reply_with_invoice(*args, **kwargs)
 - #reply_with_location(*args, **kwargs)
 - #reply_with_media_group(*args, **kwargs)
 - #reply_with_menu(menu : RoutedMenu, **kwargs)
 - #reply_with_paginated_keyboard(keyboard : PaginatedKeyboard, **kwargs)
 - #reply_with_photo(*args, **kwargs)
 - #reply_with_poll(*args, **kwargs)
 - #reply_with_sticker(*args, **kwargs)
 - #reply_with_venu(*args, **kwargs)
 - #reply_with_video(*args, **kwargs)
 - #reply_with_video_note(*args, **kwargs)
 - #reply_with_voice(*args, **kwargs)
 - 
        #respond(message, **kwargs)
        
          
Respond to a message.
 - #respond_with_animation(*args, **kwargs)
 - #respond_with_audio(*args, **kwargs)
 - #respond_with_basketball(*args, **kwargs)
 - #respond_with_contact(*args, **kwargs)
 - #respond_with_dart(*args, **kwargs)
 - #respond_with_dice(*args, **kwargs)
 - #respond_with_document(*args, **kwargs)
 - #respond_with_invoice(*args, **kwargs)
 - #respond_with_location(*args, **kwargs)
 - #respond_with_media_group(*args, **kwargs)
 - #respond_with_menu(menu : RoutedMenu, **kwargs)
 - #respond_with_paginated_keyboard(keyboard : PaginatedKeyboard, **kwargs)
 - #respond_with_photo(*args, **kwargs)
 - #respond_with_poll(*args, **kwargs)
 - #respond_with_sticker(*args, **kwargs)
 - #respond_with_venu(*args, **kwargs)
 - #respond_with_video(*args, **kwargs)
 - #respond_with_video_note(*args, **kwargs)
 - #respond_with_voice(*args, **kwargs)
 - #sender_chat : Chat | Nil
 - #sender_type
 - #sticker : Sticker | Nil
 - #stop_live_location(**kwargs)
 - #successful_payment : SuccessfulPayment | Nil
 - #supergroup_chat_created : Bool | Nil
 - #text : String | Nil
 - #text_entities
 - #topic_message? : Bool | Nil
 - 
        #unpin(**kwargs)
        
          
Unpin the message.
 - #users
 - #users(&block : User -> )
 - #venue : Venue | Nil
 - #via_bot : User | Nil
 - #video : Video | Nil
 - #video_chat_ended : VideoChatEnded | Nil
 - #video_chat_participants_invited : VideoChatParticipantsInvited | Nil
 - #video_chat_scheduled : VideoChatScheduled | Nil
 - #video_chat_started : VideoChatStarted | Nil
 - #video_note : VideoNote | Nil
 - 
        #views : Int32 | Nil
        
          
USER API ONLY
 - #voice : Voice | Nil
 - #web_app_data : WebAppData | Nil
 
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
Instance Method Detail
Edits the message's caption. See Tourmaline::Client#edit_message_caption
Edits the message's live_location. See Tourmaline::Client#edit_message_live_location
Edits the message's media. See Tourmaline::Client#edit_message_media
Set the reply markup for the message. See Tourmaline::Client#edit_message_reply_markup.
Edits the text of a message. See Tourmaline::Client#edit_message_text.
Forward the message to another chat. See Tourmaline::Client#forward_message.