Class: Telegram::Message
- Inherits:
-
Struct
- Object
- Struct
- Telegram::Message
- Defined in:
- lib/telegram/events.rb
Overview
Message object belong to Event class instance
Instance Attribute Summary collapse
-
#from ⇒ TelegramContact
The sender of the message.
-
#from_type ⇒ String
The type of the sender.
-
#id ⇒ Number
Message Identifier.
-
#raw_from ⇒ String
Raw identifier string of the sender.
-
#raw_to ⇒ String
Raw identifier string of the receiver.
-
#text ⇒ String
The text of the message.
- #to ⇒ TelegramChat, TelegramContact
-
#to_type ⇒ String
The type of the receiver.
-
#type ⇒ String
The type of the message (either of text, photo, video or etc).
Instance Attribute Details
#from ⇒ TelegramContact
Returns The sender of the message.
55 56 57 |
# File 'lib/telegram/events.rb', line 55 def from @from end |
#from_type ⇒ String
Returns The type of the sender.
55 56 57 |
# File 'lib/telegram/events.rb', line 55 def from_type @from_type end |
#id ⇒ Number
Returns Message Identifier.
55 56 57 |
# File 'lib/telegram/events.rb', line 55 def id @id end |
#raw_from ⇒ String
Returns Raw identifier string of the sender.
55 56 57 |
# File 'lib/telegram/events.rb', line 55 def raw_from @raw_from end |
#raw_to ⇒ String
Returns Raw identifier string of the receiver.
55 56 57 |
# File 'lib/telegram/events.rb', line 55 def raw_to @raw_to end |
#text ⇒ String
Returns The text of the message.
55 56 57 |
# File 'lib/telegram/events.rb', line 55 def text @text end |
#to ⇒ TelegramChat, TelegramContact
55 56 57 |
# File 'lib/telegram/events.rb', line 55 def to @to end |
#to_type ⇒ String
Returns The type of the receiver.
55 56 57 |
# File 'lib/telegram/events.rb', line 55 def to_type @to_type end |
#type ⇒ String
Returns The type of the message (either of text, photo, video or etc).
55 56 57 |
# File 'lib/telegram/events.rb', line 55 def type @type end |