Interface RegisterDevice

Registers the currently used device for receiving push notifications. Returns a globally unique identifier of the push notification subscription. Request type for Tdjson#registerDevice.

interface RegisterDevice {
    @type: "registerDevice";
    device_token: DeviceToken;
    other_user_ids: number[];
}

Properties

@type: "registerDevice"
device_token: DeviceToken

Device token.

other_user_ids: number[]

List of user identifiers of other users currently using the application.