process_chat_has_protected_content_disable_request()

Client.process_chat_has_protected_content_disable_request()

Processes request to disable has_protected_content in a chat.

Usable by Users Bots
Parameters:
  • chat_id (int | str) – Unique identifier (int) or username (str) of the target chat.

  • request_message_id (int) – Identifier of the message with the request. The message must be incoming and contain chat_protected_content_disable_requested param set.

  • approve (bool) – Pass True to approve the request, False to reject the request.

Returns:

Message | bool – On success, a service message will be returned (when applicable), otherwise, in case a message object couldn’t be returned, True is returned.