mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI-examples.git
synced 2026-11-13 23:22:55 +00:00
update readmes
This commit is contained in:
1 parent
016400a821
commit
ce48393895
104 files changed
+2615
-333
No files matched your search
@@ -1,3 +1,4 @@
|
||||
import dev.inmo.tgbotapi.types.CustomEmojiId
|
||||
|
||||
/** Fixed sample custom emoji used by both the Web App and its bot-assisted route. */
|
||||
val CustomEmojiIdToSet = CustomEmojiId("5424939566278649034")
|
||||
@@ -3,4 +3,5 @@ import dev.inmo.tgbotapi.types.request.RequestId
|
||||
import kotlin.random.Random
|
||||
import kotlin.random.nextUInt
|
||||
|
||||
/** Process-local request ID used when the bot saves its sample managed-bot button. */
|
||||
val preparedSampleKeyboardRequestId = RequestId(Random.nextUInt().toUShort())
|
||||
@@ -1,5 +1,11 @@
|
||||
import kotlinx.serialization.Serializable
|
||||
|
||||
/**
|
||||
* JSON body used by server routes that validate Telegram Web App initialization.
|
||||
*
|
||||
* @property data raw `initData` received by the browser Web App.
|
||||
* @property hash hash exposed by the parsed, unsafe initialization data.
|
||||
*/
|
||||
@Serializable
|
||||
data class WebAppDataWrapper(
|
||||
val data: String,
|
||||
|
||||
Reference in new issue
Block a user