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