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:
keyboard_arrow_upkeyboard_arrow_down
FirebaseCloudMessaging
ApplePush
ApplePushVoIp
WindowsPush
MicrosoftPush
MicrosoftPushVoIp
WebPush
SimplePush
UbuntuPush
BlackBerryPush
TizenPush
DeviceTokenFirebaseCloudMessagingInput
A token for Firebase Cloud Messaging.
chevron_leftchevron_right
Parameters
Interface
Name | Type | Description |
---|---|---|
_ | "deviceTokenFirebaseCloudMessaging" | |
token | string | Device registration token; may be empty to deregister a device |
encrypt | boolean | True, if push notifications must be additionally encrypted |