lib/tdlib/client_methods.rb
# Registers the currently used device for receiving push notifications.
# Returns a globally unique identifier of the push notification subscription.
#
# @param device_token [TD::Types::DeviceToken] Device token.
# @param other_user_ids [Array<Integer>] List of user identifiers of other users currently using the application.
# @return [TD::Types::PushReceiverId]
Registers the currently used device for receiving push notifications.
Returns a globally unique identifier of the push notification subscription.
Registers the currently used device for receiving push notifications . Returns a globally unique identifier of the push notification subscription .
def register_device(device_token:, other_user_ids:)
    broadcast('@type'          => 'registerDevice',
              'device_token'   => device_token,
              'other_user_ids' => other_user_ids)
  end
def register_device ( device_token : , other_user_ids : ) broadcast ( '@type' => 'registerDevice' , 'device_token' => device_token , 'other_user_ids' => other_user_ids ) end
Registers the currently used device for receiving push notifications.
Registers the currently used device for receiving push notifications .
None
TD::Types::PushReceiverId
device_token
None
other_user_ids
List of user identifiers of other users currently using the application.
List of user identifiers of other users currently using the application .