Interface DeviceTokenFirebaseCloudMessaging

Represents a data needed to subscribe for push notifications through registerDevice method. To use specific push notification service, the correct application platform must be specified and a 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.