mirror of
https://github.com/danog/MadelineProto.git
synced 2024-12-15 05:36:56 +01:00
24 lines
785 B
Markdown
24 lines
785 B
Markdown
---
|
|
title: reportChat
|
|
description: Reports chat to Telegram moderators. Can be used only for a channel chat or a private chat with a bot, because all other chats can't be checked by moderators
|
|
---
|
|
## Method: reportChat
|
|
[Back to methods index](index.md)
|
|
|
|
|
|
YOU CANNOT USE THIS METHOD IN MADELINEPROTO
|
|
|
|
|
|
Reports chat to Telegram moderators. Can be used only for a channel chat or a private chat with a bot, because all other chats can't be checked by moderators
|
|
|
|
### Params:
|
|
|
|
| Name | Type | Required | Description |
|
|
|----------|---------------|----------|-------------|
|
|
|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|Chat identifier|
|
|
|reason|[ChatReportReason](../types/ChatReportReason.md) | Yes|Reason, the chat is reported|
|
|
|
|
|
|
### Return type: [Ok](../types/Ok.md)
|
|
|