telegram-bot-simple-0.5.2: Easy to use library for building Telegram bots.
Safe HaskellNone
LanguageHaskell2010

Telegram.Bot.API.WebApps

Synopsis

Types

AnswerWebAppQueryRequest

data AnswerWebAppQueryRequest Source #

Constructors

AnswerWebAppQueryRequest 

Fields

Instances

Instances details
Show AnswerWebAppQueryRequest Source # 
Instance details

Defined in Telegram.Bot.API.WebApps

Generic AnswerWebAppQueryRequest Source # 
Instance details

Defined in Telegram.Bot.API.WebApps

Associated Types

type Rep AnswerWebAppQueryRequest :: Type -> Type #

FromJSON AnswerWebAppQueryRequest Source # 
Instance details

Defined in Telegram.Bot.API.WebApps

Methods

parseJSON :: Value -> Parser AnswerWebAppQueryRequest

parseJSONList :: Value -> Parser [AnswerWebAppQueryRequest]

ToJSON AnswerWebAppQueryRequest Source # 
Instance details

Defined in Telegram.Bot.API.WebApps

type Rep AnswerWebAppQueryRequest Source # 
Instance details

Defined in Telegram.Bot.API.WebApps

type Rep AnswerWebAppQueryRequest = D1 ('MetaData "AnswerWebAppQueryRequest" "Telegram.Bot.API.WebApps" "telegram-bot-simple-0.5.2-inplace" 'False) (C1 ('MetaCons "AnswerWebAppQueryRequest" 'PrefixI 'True) (S1 ('MetaSel ('Just "answerWebAppQueryRequestWebAppQueryId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "answerWebAppQueryRequestResult") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 InlineQueryResult)))

SentWebAppMessage

newtype SentWebAppMessage Source #

Contains information about an inline message sent by a Web App on behalf of a user.

Instances

Instances details
Show SentWebAppMessage Source # 
Instance details

Defined in Telegram.Bot.API.WebApps

Generic SentWebAppMessage Source # 
Instance details

Defined in Telegram.Bot.API.WebApps

Associated Types

type Rep SentWebAppMessage :: Type -> Type #

FromJSON SentWebAppMessage Source # 
Instance details

Defined in Telegram.Bot.API.WebApps

Methods

parseJSON :: Value -> Parser SentWebAppMessage

parseJSONList :: Value -> Parser [SentWebAppMessage]

ToJSON SentWebAppMessage Source # 
Instance details

Defined in Telegram.Bot.API.WebApps

type Rep SentWebAppMessage Source # 
Instance details

Defined in Telegram.Bot.API.WebApps

type Rep SentWebAppMessage = D1 ('MetaData "SentWebAppMessage" "Telegram.Bot.API.WebApps" "telegram-bot-simple-0.5.2-inplace" 'True) (C1 ('MetaCons "SentWebAppMessage" 'PrefixI 'True) (S1 ('MetaSel ('Just "sentWebAppMessageInlineMessageId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe InlineQueryId))))

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.