lib/tdlib/client_methods.rb
# Sends a message.
# Returns the sent message.
#
# @param chat_id [Integer] Target chat.
# @param message_thread_id [Integer] If not 0, a message thread identifier in which the message will be sent.
# @param reply_to_message_id [Integer] Identifier of the message to reply to or 0.
# @param options [TD::Types::MessageSendOptions] Options to be used to send the message; pass null to use default
#   options.
# @param reply_markup [TD::Types::ReplyMarkup] Markup for replying to the message; pass null if none; for bots only.
# @param input_message_content [TD::Types::InputMessageContent] The content of the message to be sent.
# @return [TD::Types::Message]
Sends a message.
Returns the sent message.
Sends a message . Returns the sent message .
def send_message(chat_id:, message_thread_id:, reply_to_message_id:, options:, reply_markup:, input_message_content:)
    broadcast('@type'                 => 'sendMessage',
              'chat_id'               => chat_id,
              'message_thread_id'     => message_thread_id,
              'reply_to_message_id'   => reply_to_message_id,
              'options'               => options,
              'reply_markup'          => reply_markup,
              'input_message_content' => input_message_content)
  end
def send_message ( chat_id : , message_thread_id : , reply_to_message_id : , options : , reply_markup : , input_message_content : ) broadcast ( '@type' => 'sendMessage' , 'chat_id' => chat_id , 'message_thread_id' => message_thread_id , 'reply_to_message_id' => reply_to_message_id , 'options' => options , 'reply_markup' => reply_markup , 'input_message_content' => input_message_content ) end
Sends a message.
Sends a message .
None
TD::Types::Message
chat_id
None
message_thread_id
If not 0, a message thread identifier in which the message will be sent.
If not 0 a message thread identifier in which the message will be sent .
reply_to_message_id
Identifier of the message to reply to or 0.
Identifier of the message to reply to or 0 .
options
Options to be used to send the message; pass null to use default options.
Options to be used to send the message ; pass null to use default options .
reply_markup
Markup for replying to the message; pass null if none; for bots only.
Markup for replying to the message ; pass null if none ; for bots only .
input_message_content
The content of the message to be sent.
The content of the message to be sent .