lib/tdlib/client_methods.rb
def toggle_session_can_accept_calls(session_id:, can_accept_calls:)
    broadcast('@type'            => 'toggleSessionCanAcceptCalls',
              'session_id'       => session_id,
              'can_accept_calls' => can_accept_calls)
  end
# Toggles whether a session can accept incoming calls.
#
# @param session_id [Integer] Session identifier.
# @param can_accept_calls [Boolean] True, if incoming calls can be accepted by the session.
# @return [TD::Types::Ok]
Toggles whether a session can accept incoming calls.
Toggles whether a session can accept incoming calls .
def toggle_session_can_accept_calls(session_id:, can_accept_calls:)
    broadcast('@type'            => 'toggleSessionCanAcceptCalls',
              'session_id'       => session_id,
              'can_accept_calls' => can_accept_calls)
  end
def toggle_session_can_accept_calls ( session_id : , can_accept_calls : ) broadcast ( '@type' => 'toggleSessionCanAcceptCalls' , 'session_id' => session_id , 'can_accept_calls' => can_accept_calls ) end
Toggles whether a session can accept incoming calls.
Toggles whether a session can accept incoming calls .
None
TD::Types::Ok
session_id
None
can_accept_calls
True, if incoming calls can be accepted by the session.
True if incoming calls can be accepted by the session .