Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Telegram.Bot.Simple.UpdateParser
Synopsis
- newtype UpdateParser a = UpdateParser {
- runUpdateParser :: Update -> Maybe a
- mkParser :: (Update -> Maybe a) -> UpdateParser a
- parseUpdate :: UpdateParser a -> Update -> Maybe a
- text :: UpdateParser Text
- plainText :: UpdateParser Text
- command :: Text -> UpdateParser Text
- commandWithBotName :: Text -> Text -> UpdateParser Text
- callbackQueryDataRead :: Read a => UpdateParser a
- updateMessageText :: Update -> Maybe Text
- updateMessageSticker :: Update -> Maybe Sticker
Documentation
newtype UpdateParser a Source #
Constructors
UpdateParser | |
Fields
|
Instances
parseUpdate :: UpdateParser a -> Update -> Maybe a Source #
text :: UpdateParser Text Source #
commandWithBotName :: Text -> Text -> UpdateParser Text Source #
callbackQueryDataRead :: Read a => UpdateParser a Source #
Obtain CallbackQuery
data
associated with the callback button in an inline keyboard if present in Update
message.