TDLib v0.0.2 TDLib.Method.ChangeChatReportSpamState View Source

Used to let the server know whether a chat is spam or not. Can be used only if ChatReportSpamState.can_report_spam is true. After this request, ChatReportSpamState.can_report_spam becomes false forever. Returns object_ptr.

NameTypeDescription
chat_idstringChat identifier.
is_spam_chatboolIf true, the chat will be reported as spam; otherwise it will be marked as not spam.

More details on telegram’s documentation.