Class: FantasticRobot::Model::Message

Inherits:
Base
  • Object
show all
Defined in:
lib/fantastic_robot/model/message.rb

Constant Summary collapse

FIELD_CONVERSIONS =

Field conversions of this model

{
  from: FantasticRobot::Model::User,
  chat: FantasticRobot::Model::Chat,
  forward_from: FantasticRobot::Model::User,
  reply_to_message: FantasticRobot::Model::Message,
  audio: FantasticRobot::Model::Attachment::Audio,
  document: FantasticRobot::Model::Attachment::Document,
  photo: FantasticRobot::Model::Attachment::PhotoSize,
  sticker: FantasticRobot::Model::Attachment::Sticker,
  video: FantasticRobot::Model::Attachment::Video,
  voice: FantasticRobot::Model::Attachment::Voice,
  contact: FantasticRobot::Model::Attachment::Contact,
  location: FantasticRobot::Model::Attachment::Location,
  new_chat_participant: FantasticRobot::Model::User,
  left_chat_participant: FantasticRobot::Model::User,
  new_chat_photo: FantasticRobot::Model::Attachment::PhotoSize
}

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#attributes, #initialize, #to_h

Constructor Details

This class inherits a constructor from FantasticRobot::Model::Base

Instance Attribute Details

#audioObject

Returns the value of attribute audio.



21
22
23
# File 'lib/fantastic_robot/model/message.rb', line 21

def audio
  @audio
end

#captionObject

Returns the value of attribute caption.



21
22
23
# File 'lib/fantastic_robot/model/message.rb', line 21

def caption
  @caption
end

#channel_chat_createdObject

Returns the value of attribute channel_chat_created.



24
25
26
# File 'lib/fantastic_robot/model/message.rb', line 24

def channel_chat_created
  @channel_chat_created
end

#chatObject

Returns the value of attribute chat.



14
15
16
# File 'lib/fantastic_robot/model/message.rb', line 14

def chat
  @chat
end

#contactObject

Returns the value of attribute contact.



21
22
23
# File 'lib/fantastic_robot/model/message.rb', line 21

def contact
  @contact
end

#dateObject

Returns the value of attribute date.



14
15
16
# File 'lib/fantastic_robot/model/message.rb', line 14

def date
  @date
end

#delete_chat_photoObject

Returns the value of attribute delete_chat_photo.



24
25
26
# File 'lib/fantastic_robot/model/message.rb', line 24

def delete_chat_photo
  @delete_chat_photo
end

#documentObject

Returns the value of attribute document.



21
22
23
# File 'lib/fantastic_robot/model/message.rb', line 21

def document
  @document
end

#fordward_dateObject

Returns the value of attribute fordward_date.



14
15
16
# File 'lib/fantastic_robot/model/message.rb', line 14

def fordward_date
  @fordward_date
end

#forward_fromObject

Returns the value of attribute forward_from.



14
15
16
# File 'lib/fantastic_robot/model/message.rb', line 14

def forward_from
  @forward_from
end

#fromObject

Returns the value of attribute from.



14
15
16
# File 'lib/fantastic_robot/model/message.rb', line 14

def from
  @from
end

#group_chat_createdObject

Returns the value of attribute group_chat_created.



24
25
26
# File 'lib/fantastic_robot/model/message.rb', line 24

def group_chat_created
  @group_chat_created
end

#left_chat_participantObject

Returns the value of attribute left_chat_participant.



24
25
26
# File 'lib/fantastic_robot/model/message.rb', line 24

def left_chat_participant
  @left_chat_participant
end

#locationObject

Returns the value of attribute location.



21
22
23
# File 'lib/fantastic_robot/model/message.rb', line 21

def location
  @location
end

#message_idObject

Returns the value of attribute message_id.



14
15
16
# File 'lib/fantastic_robot/model/message.rb', line 14

def message_id
  @message_id
end

#migrate_from_chat_idObject

Returns the value of attribute migrate_from_chat_id.



24
25
26
# File 'lib/fantastic_robot/model/message.rb', line 24

def migrate_from_chat_id
  @migrate_from_chat_id
end

#migrate_to_chat_idObject

Returns the value of attribute migrate_to_chat_id.



24
25
26
# File 'lib/fantastic_robot/model/message.rb', line 24

def migrate_to_chat_id
  @migrate_to_chat_id
end

#new_chat_participantObject

Returns the value of attribute new_chat_participant.



24
25
26
# File 'lib/fantastic_robot/model/message.rb', line 24

def new_chat_participant
  @new_chat_participant
end

#new_chat_photoObject

Returns the value of attribute new_chat_photo.



24
25
26
# File 'lib/fantastic_robot/model/message.rb', line 24

def new_chat_photo
  @new_chat_photo
end

#new_chat_titleObject

Returns the value of attribute new_chat_title.



24
25
26
# File 'lib/fantastic_robot/model/message.rb', line 24

def new_chat_title
  @new_chat_title
end

#photoObject

Returns the value of attribute photo.



21
22
23
# File 'lib/fantastic_robot/model/message.rb', line 21

def photo
  @photo
end

#reply_to_messageObject

Returns the value of attribute reply_to_message.



14
15
16
# File 'lib/fantastic_robot/model/message.rb', line 14

def reply_to_message
  @reply_to_message
end

#stickerObject

Returns the value of attribute sticker.



21
22
23
# File 'lib/fantastic_robot/model/message.rb', line 21

def sticker
  @sticker
end

#supergroup_chat_createdObject

Returns the value of attribute supergroup_chat_created.



24
25
26
# File 'lib/fantastic_robot/model/message.rb', line 24

def supergroup_chat_created
  @supergroup_chat_created
end

#textObject

Returns the value of attribute text.



21
22
23
# File 'lib/fantastic_robot/model/message.rb', line 21

def text
  @text
end

#videoObject

Returns the value of attribute video.



21
22
23
# File 'lib/fantastic_robot/model/message.rb', line 21

def video
  @video
end

#voiceObject

Returns the value of attribute voice.



21
22
23
# File 'lib/fantastic_robot/model/message.rb', line 21

def voice
  @voice
end