Class: Telegram::Bot::Types::Message
- Inherits:
-
Object
- Object
- Telegram::Bot::Types::Message
- Defined in:
- lib/telegram/bot/types/message.rb
Instance Attribute Summary collapse
-
#audio ⇒ Object
Returns the value of attribute audio.
-
#author_signature ⇒ Object
Returns the value of attribute author_signature.
-
#caption ⇒ Object
Returns the value of attribute caption.
-
#caption_entities ⇒ Object
Returns the value of attribute caption_entities.
-
#channel_chat_created ⇒ Object
Returns the value of attribute channel_chat_created.
-
#chat ⇒ Object
Returns the value of attribute chat.
-
#contact ⇒ Object
Returns the value of attribute contact.
-
#date ⇒ Object
Returns the value of attribute date.
-
#delete_chat_photo ⇒ Object
Returns the value of attribute delete_chat_photo.
-
#document ⇒ Object
Returns the value of attribute document.
-
#edit_date ⇒ Object
Returns the value of attribute edit_date.
-
#entities ⇒ Object
Returns the value of attribute entities.
-
#forward_date ⇒ Object
Returns the value of attribute forward_date.
-
#forward_from ⇒ Object
Returns the value of attribute forward_from.
-
#forward_from_chat ⇒ Object
Returns the value of attribute forward_from_chat.
-
#forward_from_message_id ⇒ Object
Returns the value of attribute forward_from_message_id.
-
#forward_signature ⇒ Object
Returns the value of attribute forward_signature.
-
#from ⇒ Object
Returns the value of attribute from.
-
#game ⇒ Object
Returns the value of attribute game.
-
#group_chat_created ⇒ Object
Returns the value of attribute group_chat_created.
-
#invoice ⇒ Object
Returns the value of attribute invoice.
-
#left_chat_member ⇒ Object
Returns the value of attribute left_chat_member.
-
#location ⇒ Object
Returns the value of attribute location.
-
#media_group_id ⇒ Object
Returns the value of attribute media_group_id.
-
#message_id ⇒ Object
Returns the value of attribute message_id.
-
#migrate_from_chat_id ⇒ Object
Returns the value of attribute migrate_from_chat_id.
-
#migrate_to_chat_id ⇒ Object
Returns the value of attribute migrate_to_chat_id.
-
#new_chat_members ⇒ Object
Returns the value of attribute new_chat_members.
-
#new_chat_photo ⇒ Object
Returns the value of attribute new_chat_photo.
-
#new_chat_title ⇒ Object
Returns the value of attribute new_chat_title.
-
#photo ⇒ Object
Returns the value of attribute photo.
-
#pinned_message ⇒ Object
Returns the value of attribute pinned_message.
-
#reply_to_message ⇒ Object
Returns the value of attribute reply_to_message.
-
#sticker ⇒ Object
Returns the value of attribute sticker.
-
#successful_payment ⇒ Object
Returns the value of attribute successful_payment.
-
#supergroup_chat_created ⇒ Object
Returns the value of attribute supergroup_chat_created.
-
#text ⇒ Object
Returns the value of attribute text.
-
#venue ⇒ Object
Returns the value of attribute venue.
-
#video ⇒ Object
Returns the value of attribute video.
-
#video_note ⇒ Object
Returns the value of attribute video_note.
-
#voice ⇒ Object
Returns the value of attribute voice.
Instance Method Summary collapse
-
#initialize(attributes) ⇒ Message
constructor
A new instance of Message.
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
#audio ⇒ Object
Returns the value of attribute audio.
3 4 5 |
# File 'lib/telegram/bot/types/message.rb', line 3 def audio @audio end |
#author_signature ⇒ Object
Returns the value of attribute author_signature.
3 4 5 |
# File 'lib/telegram/bot/types/message.rb', line 3 def @author_signature end |
#caption ⇒ Object
Returns the value of attribute caption.
3 4 5 |
# File 'lib/telegram/bot/types/message.rb', line 3 def caption @caption end |
#caption_entities ⇒ Object
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_created ⇒ Object
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 |
#chat ⇒ Object
Returns the value of attribute chat.
3 4 5 |
# File 'lib/telegram/bot/types/message.rb', line 3 def chat @chat end |
#contact ⇒ Object
Returns the value of attribute contact.
3 4 5 |
# File 'lib/telegram/bot/types/message.rb', line 3 def contact @contact end |
#date ⇒ Object
Returns the value of attribute date.
3 4 5 |
# File 'lib/telegram/bot/types/message.rb', line 3 def date @date end |
#delete_chat_photo ⇒ Object
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 |
#document ⇒ Object
Returns the value of attribute document.
3 4 5 |
# File 'lib/telegram/bot/types/message.rb', line 3 def document @document end |
#edit_date ⇒ Object
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 |
#entities ⇒ Object
Returns the value of attribute entities.
3 4 5 |
# File 'lib/telegram/bot/types/message.rb', line 3 def entities @entities end |
#forward_date ⇒ Object
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_from ⇒ Object
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_chat ⇒ Object
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_id ⇒ Object
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 end |
#forward_signature ⇒ Object
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 |
#from ⇒ Object
Returns the value of attribute from.
3 4 5 |
# File 'lib/telegram/bot/types/message.rb', line 3 def from @from end |
#game ⇒ Object
Returns the value of attribute game.
3 4 5 |
# File 'lib/telegram/bot/types/message.rb', line 3 def game @game end |
#group_chat_created ⇒ Object
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 |
#invoice ⇒ Object
Returns the value of attribute invoice.
3 4 5 |
# File 'lib/telegram/bot/types/message.rb', line 3 def invoice @invoice end |
#left_chat_member ⇒ Object
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 |
#location ⇒ Object
Returns the value of attribute location.
3 4 5 |
# File 'lib/telegram/bot/types/message.rb', line 3 def location @location end |
#media_group_id ⇒ Object
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_id ⇒ Object
Returns the value of attribute message_id.
3 4 5 |
# File 'lib/telegram/bot/types/message.rb', line 3 def @message_id end |
#migrate_from_chat_id ⇒ Object
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_id ⇒ Object
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_members ⇒ Object
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_photo ⇒ Object
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_title ⇒ Object
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 |
#photo ⇒ Object
Returns the value of attribute photo.
3 4 5 |
# File 'lib/telegram/bot/types/message.rb', line 3 def photo @photo end |
#pinned_message ⇒ Object
Returns the value of attribute pinned_message.
3 4 5 |
# File 'lib/telegram/bot/types/message.rb', line 3 def @pinned_message end |
#reply_to_message ⇒ Object
Returns the value of attribute reply_to_message.
3 4 5 |
# File 'lib/telegram/bot/types/message.rb', line 3 def @reply_to_message end |
#sticker ⇒ Object
Returns the value of attribute sticker.
3 4 5 |
# File 'lib/telegram/bot/types/message.rb', line 3 def sticker @sticker end |
#successful_payment ⇒ Object
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_created ⇒ Object
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 |
#text ⇒ Object
Returns the value of attribute text.
3 4 5 |
# File 'lib/telegram/bot/types/message.rb', line 3 def text @text end |
#venue ⇒ Object
Returns the value of attribute venue.
3 4 5 |
# File 'lib/telegram/bot/types/message.rb', line 3 def venue @venue end |
#video ⇒ Object
Returns the value of attribute video.
3 4 5 |
# File 'lib/telegram/bot/types/message.rb', line 3 def video @video end |
#video_note ⇒ Object
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 |
#voice ⇒ Object
Returns the value of attribute voice.
3 4 5 |
# File 'lib/telegram/bot/types/message.rb', line 3 def voice @voice end |