2020-02-15 09:33:04 +00:00
|
|
|
package com.github.insanusmokrassar.TelegramBotAPI.extensions.api.games
|
|
|
|
|
2020-10-04 07:18:24 +00:00
|
|
|
import com.github.insanusmokrassar.TelegramBotAPI.bot.TelegramBot
|
2020-02-15 09:33:04 +00:00
|
|
|
import com.github.insanusmokrassar.TelegramBotAPI.requests.games.GetGameHighScoresByInlineMessageId
|
|
|
|
import com.github.insanusmokrassar.TelegramBotAPI.types.*
|
|
|
|
|
2020-10-04 07:18:24 +00:00
|
|
|
suspend fun TelegramBot.getGameScore(
|
2020-02-15 09:33:04 +00:00
|
|
|
userId: UserId,
|
|
|
|
inlineMessageId: InlineMessageIdentifier
|
|
|
|
) = 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,
|
|
|
|
inlineMessageId: InlineMessageIdentifier
|
|
|
|
) = getGameScore(user.id, inlineMessageId)
|