1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-06-14 05:45:26 +00:00
tgbotapi/tgbotapi.api/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/api/games/GetGameHighScoresByInlineMessageId.kt

21 lines
574 B
Kotlin
Raw Normal View History

package dev.inmo.tgbotapi.extensions.api.games
2020-02-15 09:33:04 +00:00
2020-10-04 11:06:30 +00:00
import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.requests.games.GetGameHighScoresByInlineMessageId
import dev.inmo.tgbotapi.types.*
2022-04-21 18:16:41 +00:00
import dev.inmo.tgbotapi.types.chat.CommonUser
2020-02-15 09:33:04 +00:00
suspend fun TelegramBot.getGameScore(
2020-02-15 09:33:04 +00:00
userId: UserId,
2024-03-16 14:36:48 +00:00
inlineMessageId: InlineMessageId
2020-02-15 09:33:04 +00:00
) = execute(
GetGameHighScoresByInlineMessageId(
userId, inlineMessageId
)
)
suspend fun TelegramBot.getGameScore(
2020-02-15 09:33:04 +00:00
user: CommonUser,
2024-03-16 14:36:48 +00:00
inlineMessageId: InlineMessageId
2020-02-15 09:33:04 +00:00
) = getGameScore(user.id, inlineMessageId)