libtd-ktx / kotlinx.telegram.coroutines / registerDevice
registerDevice
suspend fun TelegramFlow.registerDevice(deviceToken: DeviceToken?, otherUserIds: IntArray?): PushReceiverId
Suspend function, which registers the currently used device for receiving push notifications. Returns a globally unique identifier of the push notification subscription.
Parameters
deviceToken - Device token.
otherUserIds - List of user identifiers of other users currently using the client.
Return PushReceiverId Contains a globally unique push receiver identifier, which can be used to identify which account has received a push notification.