lib/tdlib/client_methods.rb
# Edits the message content caption.
# Returns the edited message after the edit is completed on the server side.
#
# @param chat_id [Integer] The chat the message belongs to.
# @param message_id [Integer] Identifier of the message.
# @param reply_markup [TD::Types::ReplyMarkup] The new message reply markup; pass null if none; for bots only.
# @param caption [TD::Types::FormattedText] New message content caption; 0-GetOption("message_caption_length_max")
#   characters; pass null to remove caption.
# @return [TD::Types::Message]
Edits the message content caption.
Returns the edited message after the edit is completed on the server side.
Edits the message content caption . Returns the edited message after the edit is completed on the server side .
def edit_message_caption(chat_id:, message_id:, reply_markup:, caption:)
    broadcast('@type'        => 'editMessageCaption',
              'chat_id'      => chat_id,
              'message_id'   => message_id,
              'reply_markup' => reply_markup,
              'caption'      => caption)
  end
def edit_message_caption ( chat_id : , message_id : , reply_markup : , caption : ) broadcast ( '@type' => 'editMessageCaption' , 'chat_id' => chat_id , 'message_id' => message_id , 'reply_markup' => reply_markup , 'caption' => caption ) end
Edits the message content caption.
Edits the message content caption .
None
TD::Types::Message
chat_id
The chat the message belongs to.
The chat the message belongs to .
message_id
Identifier of the message.
Identifier of the message .
reply_markup
The new message reply markup; pass null if none; for bots only.
The new message reply markup ; pass null if none ; for bots only .
caption
New message content caption; 0-GetOption("message_caption_length_max") characters; pass null to remove caption.
New message content caption ; 0 - GetOption ( " message_caption_length_max " ) characters ; pass null to remove caption .