telegram-bot-api-6.5: Easy to use library for building Telegram bots. Exports Telegram Bot API.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Telegram.Bot.API.WebApps

Synopsis

Types

AnswerWebAppQueryRequest

data AnswerWebAppQueryRequest Source #

Constructors

AnswerWebAppQueryRequest 

Fields

Instances

Instances details
FromJSON AnswerWebAppQueryRequest Source # 
Instance details

Defined in Telegram.Bot.API.WebApps

ToJSON 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 #

Show 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-api-6.5-3pY7XQZ5v9zCuyh8HdDMyB" 'False) (C1 ('MetaCons "AnswerWebAppQueryRequest" 'PrefixI 'True) (S1 ('MetaSel ('Just "answerWebAppQueryWebAppQueryId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "answerWebAppQueryResult") '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
FromJSON SentWebAppMessage Source # 
Instance details

Defined in Telegram.Bot.API.WebApps

ToJSON 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 #

Show 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-api-6.5-3pY7XQZ5v9zCuyh8HdDMyB" 'True) (C1 ('MetaCons "SentWebAppMessage" 'PrefixI 'True) (S1 ('MetaSel ('Just "sentWebAppMessageInlineMessageId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe InlineQueryId))))

Methods

answerWebAppQuery

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.