Class TdApi.RegisterDevice

Enclosing class:
TdApi

public static class TdApi.RegisterDevice
extends TdApi.Function
Registers the currently used device for receiving push notifications. Returns a globally unique identifier of the push notification subscription.

Returns PushReceiverId

  • Field Details

    • deviceToken

      public TdApi.DeviceToken deviceToken
      Device token.
    • otherUserIds

      public int[] otherUserIds
      List of user identifiers of other users currently using the application.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      See Also:
      Constant Field Values
  • Constructor Details

    • RegisterDevice

      public RegisterDevice()
      Registers the currently used device for receiving push notifications. Returns a globally unique identifier of the push notification subscription.

      Returns PushReceiverId

    • RegisterDevice

      public RegisterDevice​(TdApi.DeviceToken deviceToken, int[] otherUserIds)
      Registers the currently used device for receiving push notifications. Returns a globally unique identifier of the push notification subscription.

      Returns PushReceiverId

      Parameters:
      deviceToken - DeviceToken Device token.
      otherUserIds - int[] List of user identifiers of other users currently using the application.
    • RegisterDevice

      public RegisterDevice​(DataInput input) throws IOException
      Throws:
      IOException
  • Method Details