class Telegram::Bot::Types::Message

Attributes

audio[RW]
author_signature[RW]
caption[RW]
caption_entities[RW]
channel_chat_created[RW]
chat[RW]
contact[RW]
date[RW]
delete_chat_photo[RW]
document[RW]
edit_date[RW]
entities[RW]
forward_date[RW]
forward_from[RW]
forward_from_chat[RW]
forward_from_message_id[RW]
forward_signature[RW]
from[RW]
game[RW]
group_chat_created[RW]
invoice[RW]
left_chat_member[RW]
location[RW]
media_group_id[RW]
message_id[RW]
migrate_from_chat_id[RW]
migrate_to_chat_id[RW]
new_chat_members[RW]
new_chat_photo[RW]
new_chat_title[RW]
photo[RW]
pinned_message[RW]
reply_to_message[RW]
sticker[RW]
successful_payment[RW]
supergroup_chat_created[RW]
text[RW]
venue[RW]
video[RW]
video_note[RW]
voice[RW]

Public Class Methods

new(attributes) click to toggle source
# 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

Public Instance Methods

audio=(attributes) click to toggle source
# File lib/telegram/bot/types/message.rb, line 77
def audio=(attributes)
  @audio = Audio.new(attributes)
end
caption_entities=(attributes) click to toggle source
# File lib/telegram/bot/types/message.rb, line 73
def caption_entities=(attributes)
  @caption_entities = attributes.map {|attr| MessageEntity.new(attr) }
end
chat=(attributes) click to toggle source
# File lib/telegram/bot/types/message.rb, line 53
def chat=(attributes)
  @chat = Chat.new(attributes)
end
contact=(attributes) click to toggle source
# File lib/telegram/bot/types/message.rb, line 109
def contact=(attributes)
  @contact = Contact.new(attributes)
end
document=(attributes) click to toggle source
# File lib/telegram/bot/types/message.rb, line 81
def document=(attributes)
  @document = Audio.new(attributes)
end
entities=(attributes) click to toggle source
# File lib/telegram/bot/types/message.rb, line 69
def entities=(attributes)
  @entities = attributes.map {|attr| MessageEntity.new(attr) }
end
forward_from=(attributes) click to toggle source
# File lib/telegram/bot/types/message.rb, line 57
def forward_from=(attributes)
  @forward_from = User.new(attributes)
end
forward_from_chat=(attributes) click to toggle source
# File lib/telegram/bot/types/message.rb, line 61
def forward_from_chat=(attributes)
  @forward_from_chat = Chat.new(attributes)
end
from=(attributes) click to toggle source
# File lib/telegram/bot/types/message.rb, line 49
def from=(attributes)
  @from = User.new(attributes)
end
game=(attributes) click to toggle source
# File lib/telegram/bot/types/message.rb, line 85
def game=(attributes)
  @game = Game.new(attributes)
end
invoice=(attributes) click to toggle source
# File lib/telegram/bot/types/message.rb, line 137
def invoice=(attributes)
  @invoice = Invoice.new(attributes)
end
left_chat_member=(attributes) click to toggle source
# File lib/telegram/bot/types/message.rb, line 125
def left_chat_member=(attributes)
  @left_chat_member = User.new(attributes)
end
location=(attributes) click to toggle source
# File lib/telegram/bot/types/message.rb, line 113
def location=(attributes)
  @location = Location.new(attributes)
end
new_chat_members=(attributes) click to toggle source
# File lib/telegram/bot/types/message.rb, line 121
def new_chat_members=(attributes)
  @new_chat_members = attributes.map {|attr| User.new(attr) }
end
new_chat_photo=(attributes) click to toggle source
# File lib/telegram/bot/types/message.rb, line 129
def new_chat_photo=(attributes)
  @new_chat_photo = PhotoSize.new(attributes)
end
photo=(attributes) click to toggle source
# File lib/telegram/bot/types/message.rb, line 89
def photo=(attributes)
  @photo = attributes.map {|photo| PhotoSize.new(photo)}
end
pinned_message=(attributes) click to toggle source
# File lib/telegram/bot/types/message.rb, line 133
def pinned_message=(attributes)
  @pinned_message = Message.new(attributes)
end
reply_to_message=(attributes) click to toggle source
# File lib/telegram/bot/types/message.rb, line 65
def reply_to_message=(attributes)
  @reply_to_message = Message.new(attributes)
end
sticker=(attributes) click to toggle source
# File lib/telegram/bot/types/message.rb, line 93
def sticker=(attributes)
  @sticker = Sticker.new(attributes)
end
successful_payment=(attributes) click to toggle source
# File lib/telegram/bot/types/message.rb, line 141
def successful_payment=(attributes)
  @successful_payment = SuccessfulPayment.new(attributes)
end
venue=(attributes) click to toggle source
# File lib/telegram/bot/types/message.rb, line 117
def venue=(attributes)
  @venue = Venue.new(attributes)
end
video=(attributes) click to toggle source
# File lib/telegram/bot/types/message.rb, line 97
def video=(attributes)
  @video = Video.new(attributes)
end
video_note=(attributes) click to toggle source
# File lib/telegram/bot/types/message.rb, line 105
def video_note=(attributes)
  @video_note = VideoNote.new(attributes)
end
voice=(attributes) click to toggle source
# File lib/telegram/bot/types/message.rb, line 101
def voice=(attributes)
  @voice = Voice.new(attributes)
end