getPushReceiverId - libtd-ktx

Kotlin Coroutines extensions for Telegram API TDLib (Telegram Database library)


libtd-ktx / kotlinx.telegram.coroutines / getPushReceiverId

getPushReceiverId

suspend fun TelegramFlow.getPushReceiverId(payload: String?): PushReceiverId

Suspend function, which returns a globally unique push notification subscription identifier for identification of an account, which has received a push notification. This is an offline method. Can be called before authorization. Can be called synchronously.

Parameters

payload - JSON-encoded push notification payload.

Return PushReceiverId Contains a globally unique push receiver identifier, which can be used to identify which account has received a push notification.