Interface DeviceTokenFirebaseCloudMessaging

Represents data needed to subscribe to push notifications through the registerDevice method. To use a specific push notification service, the correct application platform must be specified and valid server authentication data must be uploaded at https://my.telegram.org. Subtype of DeviceToken.

interface DeviceTokenFirebaseCloudMessaging {
    @type: "deviceTokenFirebaseCloudMessaging";
    encrypt?: boolean;
    token: string;
}

Properties

Properties

@type: "deviceTokenFirebaseCloudMessaging"
encrypt?: boolean

True, if push notifications must be additionally encrypted.

token: string

Device registration token; may be empty to deregister a device.