class Telecr::Types::Message

Defined in:

api/types.cr

Constructors

Instance Method Summary

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

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

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

new(pull : JSON::PullParser) new

Constructor Detail

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

[View source]

Instance Method Detail

def audio : JSON::Any | Nil #

Media fields


[View source]
def audio=(audio : JSON::Any | Nil) #

Media fields


[View source]
def caption : String | Nil #

[View source]
def caption=(caption : String | Nil) #

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

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

[View source]
def chat : Chat #

[View source]
def chat=(chat : Chat) #

[View source]
def command? : Bool #

[View source]
def command_args : String | Nil #

[View source]
def command_name : String | Nil #

[View source]
def date : Int64 #

[View source]
def date=(date : Int64) #

[View source]
def document : JSON::Any | Nil #

[View source]
def document=(document : JSON::Any | Nil) #

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

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

[View source]
def from : User | Nil #

[View source]
def from=(from : User | Nil) #

[View source]
def has_media? : Bool #

[View source]
def is_topic_message : Bool | Nil #

API 9.5/9.6 Additions


[View source]
def is_topic_message=(is_topic_message : Bool | Nil) #

API 9.5/9.6 Additions


[View source]
def managed_bot_created : ManagedBotCreated | Nil #

[View source]
def managed_bot_created=(managed_bot_created : ManagedBotCreated | Nil) #

[View source]
def message_id : Int64 #

[View source]
def message_id=(message_id : Int64) #

[View source]
def message_thread_id : Int32 | Nil #

[View source]
def message_thread_id=(message_thread_id : Int32 | Nil) #

[View source]
def photo : Array(JSON::Any) | Nil #

[View source]
def photo=(photo : Array(JSON::Any) | Nil) #

[View source]
def reply? : Bool #

[View source]
def reply_to_message : Message | Nil #

[View source]
def reply_to_message=(reply_to_message : Message | Nil) #

[View source]
def sender_chat : Chat | Nil #

[View source]
def sender_chat=(sender_chat : Chat | Nil) #

[View source]
def sticker : JSON::Any | Nil #

[View source]
def sticker=(sticker : JSON::Any | Nil) #

[View source]
def text : String | Nil #

[View source]
def text=(text : String | Nil) #

[View source]
def time : Time #

[View source]
def via_bot : User | Nil #

[View source]
def via_bot=(via_bot : User | Nil) #

[View source]
def video : JSON::Any | Nil #

[View source]
def video=(video : JSON::Any | Nil) #

[View source]
def video_note : JSON::Any | Nil #

[View source]
def video_note=(video_note : JSON::Any | Nil) #

[View source]
def voice : JSON::Any | Nil #

[View source]
def voice=(voice : JSON::Any | Nil) #

[View source]