Class TdApi.RegisterDevice

  • Enclosing class:
    TdApi

    public static class TdApi.RegisterDevice
    extends TdApi.Function
    Registers the currently used device for receiving push notifications.

    Returns Ok

    • Field Detail

      • otherUserIds

        public int[] otherUserIds
        List of at most 100 user identifiers of other users currently using the client.
      • CONSTRUCTOR

        public static final int CONSTRUCTOR
        Identifier uniquely determining type of the object.
        See Also:
        Constant Field Values
    • Constructor Detail

      • RegisterDevice

        public RegisterDevice()
        Default constructor.
      • RegisterDevice

        public RegisterDevice​(TdApi.DeviceToken deviceToken,
                              int[] otherUserIds)
        Constructor for initialization of all fields.
        Parameters:
        deviceToken - Device token.
        otherUserIds - List of at most 100 user identifiers of other users currently using the client.