lib/tdlib/client_methods.rb
def report_chat_photo(chat_id:, file_id:, reason:, text:)
    broadcast('@type'   => 'reportChatPhoto',
              'chat_id' => chat_id,
              'file_id' => file_id,
              'reason'  => reason,
              'text'    => text)
  end
# Reports a chat photo to the Telegram moderators.
# A chat photo can be reported only if chat.can_be_reported.
#
# @param chat_id [Integer] Chat identifier.
# @param file_id [Integer] Identifier of the photo to report.
#   Only full photos from {TD::Types::ChatPhoto} can be reported.
# @param reason [TD::Types::ChatReportReason] The reason for reporting the chat photo.
# @param text [TD::Types::String] Additional report details; 0-1024 characters.
# @return [TD::Types::Ok]
Reports a chat photo to the Telegram moderators.
A chat photo can be reported only if chat.can_be_reported.
Reports a chat photo to the Telegram moderators . A chat photo can be reported only if chat . can_be_reported .
def report_chat_photo(chat_id:, file_id:, reason:, text:)
    broadcast('@type'   => 'reportChatPhoto',
              'chat_id' => chat_id,
              'file_id' => file_id,
              'reason'  => reason,
              'text'    => text)
  end
def report_chat_photo ( chat_id : , file_id : , reason : , text : ) broadcast ( '@type' => 'reportChatPhoto' , 'chat_id' => chat_id , 'file_id' => file_id , 'reason' => reason , 'text' => text ) end
Reports a chat photo to the Telegram moderators.
Reports a chat photo to the Telegram moderators .
None
TD::Types::Ok
chat_id
None
file_id
Identifier of the photo to report. Only full photos from {TD::Types::ChatPhoto} can be reported.
Identifier of the photo to report . Only full photos from { TD :: Types :: ChatPhoto } can be reported .
reason
The reason for reporting the chat photo.
The reason for reporting the chat photo .
text
Additional report details; 0-1024 characters.
Additional report details ; 0 - 1024 characters .