lib/tdlib/client_methods.rb
# Reports a chat to the Telegram moderators.
# A chat can be reported only from the chat action bar, or if chat.can_be_reported.
#
# @param chat_id [Integer] Chat identifier.
# @param message_ids [Array<Integer>] Identifiers of reported messages, if any.
# @param reason [TD::Types::ChatReportReason] The reason for reporting the chat.
# @param text [TD::Types::String] Additional report details; 0-1024 characters.
# @return [TD::Types::Ok]
Reports a chat to the Telegram moderators.
A chat can be reported only from the chat action bar, or if chat.can_be_reported.
Reports a chat to the Telegram moderators . A chat can be reported only from the chat action bar or if chat . can_be_reported .
def report_chat(chat_id:, message_ids:, reason:, text:)
    broadcast('@type'       => 'reportChat',
              'chat_id'     => chat_id,
              'message_ids' => message_ids,
              'reason'      => reason,
              'text'        => text)
  end
def report_chat ( chat_id : , message_ids : , reason : , text : ) broadcast ( '@type' => 'reportChat' , 'chat_id' => chat_id , 'message_ids' => message_ids , 'reason' => reason , 'text' => text ) end
Reports a chat to the Telegram moderators.
Reports a chat to the Telegram moderators .
None
TD::Types::Ok
chat_id
None
message_ids
Identifiers of reported messages, if any.
Identifiers of reported messages if any .
reason
The reason for reporting the chat.
The reason for reporting the chat .
text
Additional report details; 0-1024 characters.
Additional report details ; 0 - 1024 characters .