lib/tdlib/client_methods.rb
# Adds a local message to a chat.
# The message is persistent across application restarts only if the message database is used.
# Returns the added message.
#
# @param chat_id [Integer] Target chat.
# @param sender_id [TD::Types::MessageSender] Identifier of the sender of the message.
# @param reply_to_message_id [Integer] Identifier of the message to reply to or 0.
# @param disable_notification [Boolean] Pass true to disable notification for the message.
# @param input_message_content [TD::Types::InputMessageContent] The content of the message to be added.
# @return [TD::Types::Message]
Adds a local message to a chat.
The message is persistent across application restarts only if the message database is used.
Returns the added message.
Adds a local message to a chat . The message is persistent across application restarts only if the message database is used . Returns the added message .
def add_local_message(chat_id:, sender_id:, reply_to_message_id:, disable_notification:, input_message_content:)
    broadcast('@type'                 => 'addLocalMessage',
              'chat_id'               => chat_id,
              'sender_id'             => sender_id,
              'reply_to_message_id'   => reply_to_message_id,
              'disable_notification'  => disable_notification,
              'input_message_content' => input_message_content)
  end
def add_local_message ( chat_id : , sender_id : , reply_to_message_id : , disable_notification : , input_message_content : ) broadcast ( '@type' => 'addLocalMessage' , 'chat_id' => chat_id , 'sender_id' => sender_id , 'reply_to_message_id' => reply_to_message_id , 'disable_notification' => disable_notification , 'input_message_content' => input_message_content ) end
Adds a local message to a chat.
Adds a local message to a chat .
None
TD::Types::Message
chat_id
None
sender_id
Identifier of the sender of the message.
Identifier of the sender of the message .
reply_to_message_id
Identifier of the message to reply to or 0.
Identifier of the message to reply to or 0 .
disable_notification
Pass true to disable notification for the message.
Pass true to disable notification for the message .
input_message_content
The content of the message to be added.
The content of the message to be added .