Safe Haskell | None |
---|---|
Language | Haskell2010 |
Telegram.Bot.API.WebApps
Synopsis
- data AnswerWebAppQueryRequest = AnswerWebAppQueryRequest {}
- newtype SentWebAppMessage = SentWebAppMessage {}
- type AnswerWebAppQuery = "answerWebAppQuery" :> (ReqBody '[JSON] AnswerWebAppQueryRequest :> Post '[JSON] (Response SentWebAppMessage))
- answerWebAppQuery :: AnswerWebAppQueryRequest -> ClientM (Response SentWebAppMessage)
- defSentWebAppMessage :: SentWebAppMessage
- defAnswerWebAppQuery :: Text -> InlineQueryResult -> AnswerWebAppQueryRequest
Types
AnswerWebAppQueryRequest
data AnswerWebAppQueryRequest Source #
Constructors
AnswerWebAppQueryRequest | |
Fields
|
Instances
SentWebAppMessage
newtype SentWebAppMessage Source #
Contains information about an inline message sent by a Web App on behalf of a user.
Constructors
SentWebAppMessage | |
Instances
FromJSON SentWebAppMessage Source # | |||||
Defined in Telegram.Bot.API.WebApps Methods parseJSON :: Value -> Parser SentWebAppMessage # parseJSONList :: Value -> Parser [SentWebAppMessage] # | |||||
ToJSON SentWebAppMessage Source # | |||||
Defined in Telegram.Bot.API.WebApps Methods toJSON :: SentWebAppMessage -> Value # toEncoding :: SentWebAppMessage -> Encoding # toJSONList :: [SentWebAppMessage] -> Value # toEncodingList :: [SentWebAppMessage] -> Encoding # omitField :: SentWebAppMessage -> Bool # | |||||
Generic SentWebAppMessage Source # | |||||
Defined in Telegram.Bot.API.WebApps Associated Types
Methods from :: SentWebAppMessage -> Rep SentWebAppMessage x # to :: Rep SentWebAppMessage x -> SentWebAppMessage # | |||||
Show SentWebAppMessage Source # | |||||
Defined in Telegram.Bot.API.WebApps Methods showsPrec :: Int -> SentWebAppMessage -> ShowS # show :: SentWebAppMessage -> String # showList :: [SentWebAppMessage] -> ShowS # | |||||
type Rep SentWebAppMessage Source # | |||||
Defined in Telegram.Bot.API.WebApps type Rep SentWebAppMessage = D1 ('MetaData "SentWebAppMessage" "Telegram.Bot.API.WebApps" "telegram-bot-api-7.4.5-C30gz7jHapzKe4VtLU2OM4" 'True) (C1 ('MetaCons "SentWebAppMessage" 'PrefixI 'True) (S1 ('MetaSel ('Just "sentWebAppMessageInlineMessageId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe InlineMessageId)))) |
Methods
answerWebAppQuery
type AnswerWebAppQuery = "answerWebAppQuery" :> (ReqBody '[JSON] AnswerWebAppQueryRequest :> Post '[JSON] (Response SentWebAppMessage)) Source #
answerWebAppQuery :: AnswerWebAppQueryRequest -> ClientM (Response SentWebAppMessage) Source #
Use this method to set the result of an interaction with a Web App and send a corresponding message on behalf of the user to the chat from which the query originated.
On success, a SentWebAppMessage
object is returned.