process_chat_protected_content_disable_request()#

Client.process_chat_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 has content of the type TODO.

  • enabled (bool) – Pass True to approve the request; pass 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.

Raises:

RPCError – In case of a Telegram RPCError.