View Source ExTDLib.Method.ToggleSessionCanAcceptSecretChats (ExTDLib v0.0.4)

Toggles whether a session can accept incoming secret chats. Returns object_ptr<Ok>.

NameTypeDescription
session_idstringSession identifier.
can_accept_secret_chatsboolPass true to allow accepting secret chats by the session; pass false otherwise.

More details on telegram's documentation.