Airgram

Guides
/
/
Input types

DeviceTokenInput

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.

The DeviceTokenInputUnion type represents one of the following types:

DeviceTokenFirebaseCloudMessagingInput

A token for Firebase Cloud Messaging.


NameTypeDescription
_"deviceTokenFirebaseCloudMessaging"
tokenstring Device registration token; may be empty to deregister a device
encryptboolean True, if push notifications must be additionally encrypted