class Telecr::Types::Message

Overview

Message object

Defined in:

api/types.cr

Instance Method Summary

Instance methods inherited from class Telecr::Types::BaseType

inspect(io : IO) : Nil inspect, raw : Hash(String, JSON::Any) raw, to_h : Hash(String, JSON::Any) to_h, to_s(io : IO) : Nil to_s

Constructor methods inherited from class Telecr::Types::BaseType

new(raw : Hash(String, JSON::Any)) new

Instance Method Detail

def audio? : Bool #

[View source]
def caption : String | Nil #

[View source]
def caption_entities : Array(MessageEntity) #

[View source]
def chat : Chat | Nil #

[View source]
def command? : Bool #

[View source]
def command_args : String | Nil #

[View source]
def command_name : String | Nil #

[View source]
def date : Time | Nil #

[View source]
def document? : Bool #

[View source]
def entities : Array(MessageEntity) #

[View source]
def from : User | Nil #

[View source]
def has_media? : Bool #

[View source]
def media_type : Symbol | Nil #

[View source]
def message_id : Int64 | Nil #

[View source]
def photo? : Bool #

[View source]
def reply? : Bool #

[View source]
def reply_to_message : Message | Nil #

[View source]
def sticker? : Bool #

[View source]
def text : String | Nil #

[View source]
def via_bot : User | Nil #

[View source]
def video? : Bool #

[View source]
def video_note? : Bool #

[View source]
def voice? : Bool #

[View source]