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

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

NameTypeDescription
session_idstringSession identifier.
can_accept_callsboolPass true to allow accepting incoming calls by the session; pass false otherwise.

More details on telegram's documentation.