Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data SendGameRequest = SendGameRequest {
- sendGameChatId :: ChatId
- sendGameMessageThreadId :: Maybe MessageThreadId
- sendGameGameShortName :: Text
- sendGameDisableNotification :: Maybe Bool
- sendGameProtectContent :: Maybe Bool
- sendGameReplyToMessageId :: Maybe MessageId
- sendGameAllowSendingWithoutReply :: Maybe Bool
- sendGameReplyMarkup :: Maybe InlineKeyboardMarkup
- data SetGameScoreRequest = SetGameScoreRequest {}
- data SetGameScoreResult
- data GetGameHighScoresRequest = GetGameHighScoresRequest {}
- type SendGame = "sendGame" :> (ReqBody '[JSON] SendGameRequest :> Post '[JSON] (Response Message))
- sendGame :: SendGameRequest -> ClientM (Response Message)
- type SetGameScore = "setGameScore" :> (ReqBody '[JSON] SetGameScoreRequest :> Post '[JSON] (Response SetGameScoreResult))
- setGameScore :: SetGameScoreRequest -> ClientM (Response SetGameScoreResult)
- type GetGameHighScores = "getGameHighScores" :> (ReqBody '[JSON] GetGameHighScoresRequest :> Post '[JSON] (Response [GameHighScore]))
Types
SendGameRequest
data SendGameRequest Source #
SendGameRequest | |
|
Instances
SetGameScoreRequest
data SetGameScoreRequest Source #
SetGameScoreRequest | |
|
Instances
SetGameScoreResult
data SetGameScoreResult Source #
Instances
GetGameHighScoresRequest
data GetGameHighScoresRequest Source #
GetGameHighScoresRequest | |
|
Instances
Methods
sendGame
type SendGame = "sendGame" :> (ReqBody '[JSON] SendGameRequest :> Post '[JSON] (Response Message)) Source #
sendGame :: SendGameRequest -> ClientM (Response Message) Source #
Use this method to send a game. On success, the sent Message
is returned.
setGameScore
type SetGameScore = "setGameScore" :> (ReqBody '[JSON] SetGameScoreRequest :> Post '[JSON] (Response SetGameScoreResult)) Source #
setGameScore :: SetGameScoreRequest -> ClientM (Response SetGameScoreResult) Source #
Use this method to set the score of the specified user in a game message. On success, if the message is not an inline message, the Message
is returned, otherwise True is returned. Returns an error, if the new score is not greater than the user's current score in the chat and force is False.
getGameHighScores
type GetGameHighScores = "getGameHighScores" :> (ReqBody '[JSON] GetGameHighScoresRequest :> Post '[JSON] (Response [GameHighScore])) Source #