Class: Telegram::Bot::Types::Message

Inherits:
Object
  • Object
show all
Defined in:
lib/telegram/bot/types/message.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes) ⇒ Message

Returns a new instance of Message.



45
46
47
# File 'lib/telegram/bot/types/message.rb', line 45

def initialize(attributes)
  attributes.each { |k, v| self.send("#{k}=", v) if self.respond_to? k }
end

Instance Attribute Details

#audioObject

Returns the value of attribute audio.



3
4
5
# File 'lib/telegram/bot/types/message.rb', line 3

def audio
  @audio
end

#author_signatureObject

Returns the value of attribute author_signature.



3
4
5
# File 'lib/telegram/bot/types/message.rb', line 3

def author_signature
  @author_signature
end

#captionObject

Returns the value of attribute caption.



3
4
5
# File 'lib/telegram/bot/types/message.rb', line 3

def caption
  @caption
end

#caption_entitiesObject

Returns the value of attribute caption_entities.



3
4
5
# File 'lib/telegram/bot/types/message.rb', line 3

def caption_entities
  @caption_entities
end

#channel_chat_createdObject

Returns the value of attribute channel_chat_created.



3
4
5
# File 'lib/telegram/bot/types/message.rb', line 3

def channel_chat_created
  @channel_chat_created
end

#chatObject

Returns the value of attribute chat.



3
4
5
# File 'lib/telegram/bot/types/message.rb', line 3

def chat
  @chat
end

#contactObject

Returns the value of attribute contact.



3
4
5
# File 'lib/telegram/bot/types/message.rb', line 3

def contact
  @contact
end

#dateObject

Returns the value of attribute date.



3
4
5
# File 'lib/telegram/bot/types/message.rb', line 3

def date
  @date
end

#delete_chat_photoObject

Returns the value of attribute delete_chat_photo.



3
4
5
# File 'lib/telegram/bot/types/message.rb', line 3

def delete_chat_photo
  @delete_chat_photo
end

#documentObject

Returns the value of attribute document.



3
4
5
# File 'lib/telegram/bot/types/message.rb', line 3

def document
  @document
end

#edit_dateObject

Returns the value of attribute edit_date.



3
4
5
# File 'lib/telegram/bot/types/message.rb', line 3

def edit_date
  @edit_date
end

#entitiesObject

Returns the value of attribute entities.



3
4
5
# File 'lib/telegram/bot/types/message.rb', line 3

def entities
  @entities
end

#forward_dateObject

Returns the value of attribute forward_date.



3
4
5
# File 'lib/telegram/bot/types/message.rb', line 3

def forward_date
  @forward_date
end

#forward_fromObject

Returns the value of attribute forward_from.



3
4
5
# File 'lib/telegram/bot/types/message.rb', line 3

def forward_from
  @forward_from
end

#forward_from_chatObject

Returns the value of attribute forward_from_chat.



3
4
5
# File 'lib/telegram/bot/types/message.rb', line 3

def forward_from_chat
  @forward_from_chat
end

#forward_from_message_idObject

Returns the value of attribute forward_from_message_id.



3
4
5
# File 'lib/telegram/bot/types/message.rb', line 3

def forward_from_message_id
  @forward_from_message_id
end

#forward_signatureObject

Returns the value of attribute forward_signature.



3
4
5
# File 'lib/telegram/bot/types/message.rb', line 3

def forward_signature
  @forward_signature
end

#fromObject

Returns the value of attribute from.



3
4
5
# File 'lib/telegram/bot/types/message.rb', line 3

def from
  @from
end

#gameObject

Returns the value of attribute game.



3
4
5
# File 'lib/telegram/bot/types/message.rb', line 3

def game
  @game
end

#group_chat_createdObject

Returns the value of attribute group_chat_created.



3
4
5
# File 'lib/telegram/bot/types/message.rb', line 3

def group_chat_created
  @group_chat_created
end

#invoiceObject

Returns the value of attribute invoice.



3
4
5
# File 'lib/telegram/bot/types/message.rb', line 3

def invoice
  @invoice
end

#left_chat_memberObject

Returns the value of attribute left_chat_member.



3
4
5
# File 'lib/telegram/bot/types/message.rb', line 3

def left_chat_member
  @left_chat_member
end

#locationObject

Returns the value of attribute location.



3
4
5
# File 'lib/telegram/bot/types/message.rb', line 3

def location
  @location
end

#media_group_idObject

Returns the value of attribute media_group_id.



3
4
5
# File 'lib/telegram/bot/types/message.rb', line 3

def media_group_id
  @media_group_id
end

#message_idObject

Returns the value of attribute message_id.



3
4
5
# File 'lib/telegram/bot/types/message.rb', line 3

def message_id
  @message_id
end

#migrate_from_chat_idObject

Returns the value of attribute migrate_from_chat_id.



3
4
5
# File 'lib/telegram/bot/types/message.rb', line 3

def migrate_from_chat_id
  @migrate_from_chat_id
end

#migrate_to_chat_idObject

Returns the value of attribute migrate_to_chat_id.



3
4
5
# File 'lib/telegram/bot/types/message.rb', line 3

def migrate_to_chat_id
  @migrate_to_chat_id
end

#new_chat_membersObject

Returns the value of attribute new_chat_members.



3
4
5
# File 'lib/telegram/bot/types/message.rb', line 3

def new_chat_members
  @new_chat_members
end

#new_chat_photoObject

Returns the value of attribute new_chat_photo.



3
4
5
# File 'lib/telegram/bot/types/message.rb', line 3

def new_chat_photo
  @new_chat_photo
end

#new_chat_titleObject

Returns the value of attribute new_chat_title.



3
4
5
# File 'lib/telegram/bot/types/message.rb', line 3

def new_chat_title
  @new_chat_title
end

#photoObject

Returns the value of attribute photo.



3
4
5
# File 'lib/telegram/bot/types/message.rb', line 3

def photo
  @photo
end

#pinned_messageObject

Returns the value of attribute pinned_message.



3
4
5
# File 'lib/telegram/bot/types/message.rb', line 3

def pinned_message
  @pinned_message
end

#reply_to_messageObject

Returns the value of attribute reply_to_message.



3
4
5
# File 'lib/telegram/bot/types/message.rb', line 3

def reply_to_message
  @reply_to_message
end

#stickerObject

Returns the value of attribute sticker.



3
4
5
# File 'lib/telegram/bot/types/message.rb', line 3

def sticker
  @sticker
end

#successful_paymentObject

Returns the value of attribute successful_payment.



3
4
5
# File 'lib/telegram/bot/types/message.rb', line 3

def successful_payment
  @successful_payment
end

#supergroup_chat_createdObject

Returns the value of attribute supergroup_chat_created.



3
4
5
# File 'lib/telegram/bot/types/message.rb', line 3

def supergroup_chat_created
  @supergroup_chat_created
end

#textObject

Returns the value of attribute text.



3
4
5
# File 'lib/telegram/bot/types/message.rb', line 3

def text
  @text
end

#venueObject

Returns the value of attribute venue.



3
4
5
# File 'lib/telegram/bot/types/message.rb', line 3

def venue
  @venue
end

#videoObject

Returns the value of attribute video.



3
4
5
# File 'lib/telegram/bot/types/message.rb', line 3

def video
  @video
end

#video_noteObject

Returns the value of attribute video_note.



3
4
5
# File 'lib/telegram/bot/types/message.rb', line 3

def video_note
  @video_note
end

#voiceObject

Returns the value of attribute voice.



3
4
5
# File 'lib/telegram/bot/types/message.rb', line 3

def voice
  @voice
end