2020-10-04 10:57:39 +00:00
|
|
|
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
|
|
|
|
2020-10-04 07:18:24 +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
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
2020-10-04 07:18:24 +00:00
|
|
|
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)
|