Class TdApi.RegisterDevice
java.lang.Object
dev.voroby.springframework.telegram.client.TdApi.Object
dev.voroby.springframework.telegram.client.TdApi.Function<TdApi.PushReceiverId>
dev.voroby.springframework.telegram.client.TdApi.RegisterDevice
- Enclosing class:
- TdApi
Registers the currently used device for receiving push notifications. Returns a globally unique identifier of the push notification subscription.
Returns PushReceiverId
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Identifier uniquely determining type of the object.Device token.long[]
List of user identifiers of other users currently using the application. -
Constructor Summary
ConstructorDescriptionDefault constructor for a function, which registers the currently used device for receiving push notifications.RegisterDevice
(TdApi.DeviceToken deviceToken, long[] otherUserIds) Creates a function, which registers the currently used device for receiving push notifications. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns an identifier uniquely determining type of the object.Methods inherited from class dev.voroby.springframework.telegram.client.TdApi.Function
toString
-
Field Details
-
deviceToken
Device token. -
otherUserIds
public long[] otherUserIdsList of user identifiers of other users currently using the application. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
RegisterDevice
public RegisterDevice()Default constructor for a function, which registers the currently used device for receiving push notifications. Returns a globally unique identifier of the push notification subscription.Returns
PushReceiverId
-
RegisterDevice
Creates a function, which registers the currently used device for receiving push notifications. Returns a globally unique identifier of the push notification subscription.Returns
PushReceiverId
- Parameters:
deviceToken
- Device token.otherUserIds
- List of user identifiers of other users currently using the application.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.Object
Returns an identifier uniquely determining type of the object.- Specified by:
getConstructor
in classTdApi.Object
- Returns:
- this.CONSTRUCTOR
-