haskell-tdlib-2.0.47.0
Safe HaskellSafe-Inferred
LanguageGHC2021

TD.Data.DeviceToken

Synopsis

Documentation

data DeviceToken Source #

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

Constructors

DeviceTokenFirebaseCloudMessaging

A token for Firebase Cloud Messaging

Fields

  • token :: Maybe Text

    Device registration token; may be empty to deregister a device

  • encrypt :: Maybe Bool

    True, if push notifications must be additionally encrypted

DeviceTokenApplePush

A token for Apple Push Notification service

Fields

DeviceTokenApplePushVoIP

A token for Apple Push Notification service VoIP notifications

Fields

DeviceTokenWindowsPush

A token for Windows Push Notification Services

Fields

  • access_token :: Maybe Text

    The access token that will be used to send notifications; may be empty to deregister a device

DeviceTokenMicrosoftPush

A token for Microsoft Push Notification Service

Fields

DeviceTokenMicrosoftPushVoIP

A token for Microsoft Push Notification Service VoIP channel

Fields

DeviceTokenWebPush

A token for web Push API

Fields

DeviceTokenSimplePush

A token for Simple Push API for Firefox OS

Fields

  • endpoint :: Maybe Text

    Absolute URL exposed by the push service where the application server can send push messages; may be empty to deregister a device

DeviceTokenUbuntuPush

A token for Ubuntu Push Client service

Fields

  • token :: Maybe Text

    Device registration token; may be empty to deregister a device

DeviceTokenBlackBerryPush

A token for BlackBerry Push Service

Fields

  • token :: Maybe Text

    Device registration token; may be empty to deregister a device

DeviceTokenTizenPush

A token for Tizen Push Service

Fields

  • reg_id :: Maybe Text

    Push service registration identifier; may be empty to deregister a device

DeviceTokenHuaweiPush

A token for HUAWEI Push Service

Fields

  • token :: Maybe Text

    Device registration token; may be empty to deregister a device

  • encrypt :: Maybe Bool

    True, if push notifications must be additionally encrypted