Class: TD::Types::QuickReplyMessage

Inherits:
Base
  • Object
show all
Defined in:
lib/tdlib/types/quick_reply_message.rb

Overview

Describes a message that can be used for quick reply.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#can_be_editedBoolean

True, if the message can be edited.

Returns:

  • (Boolean)

    the current value of can_be_edited



15
16
17
# File 'lib/tdlib/types/quick_reply_message.rb', line 15

def can_be_edited
  @can_be_edited
end

#contentTD::Types::MessageContent

Content of the message.

Returns:



15
16
17
# File 'lib/tdlib/types/quick_reply_message.rb', line 15

def content
  @content
end

#idInteger

Unique message identifier among all quick replies.

Returns:

  • (Integer)

    the current value of id



15
16
17
# File 'lib/tdlib/types/quick_reply_message.rb', line 15

def id
  @id
end

#media_album_idInteger

Unique identifier of an album this message belongs to; 0 if none. Only audios, documents, photos and videos can be grouped together in albums.

Returns:

  • (Integer)

    the current value of media_album_id



15
16
17
# File 'lib/tdlib/types/quick_reply_message.rb', line 15

def media_album_id
  @media_album_id
end

#reply_markupTD::Types::ReplyMarkup?

Inline keyboard reply markup for the message; may be null if none.

Returns:



15
16
17
# File 'lib/tdlib/types/quick_reply_message.rb', line 15

def reply_markup
  @reply_markup
end

#reply_to_message_idInteger

The identifier of the quick reply message to which the message replies; 0 if none.

Returns:

  • (Integer)

    the current value of reply_to_message_id



15
16
17
# File 'lib/tdlib/types/quick_reply_message.rb', line 15

def reply_to_message_id
  @reply_to_message_id
end

#sending_stateTD::Types::MessageSendingState?

The sending state of the message; may be null if the message isn’t being sent and didn’t fail to be sent.

Returns:



15
16
17
# File 'lib/tdlib/types/quick_reply_message.rb', line 15

def sending_state
  @sending_state
end

#via_bot_user_idInteger

If non-zero, the user identifier of the bot through which this message was sent.

Returns:

  • (Integer)

    the current value of via_bot_user_id



15
16
17
# File 'lib/tdlib/types/quick_reply_message.rb', line 15

def via_bot_user_id
  @via_bot_user_id
end