answer_web_app_query
Use this method to set the result of an interaction with a Web App and
Parameters
web_app_query_id
(str
): Unique identifier for the query to be answeredresult
(InlineQueryResultCachedAudio or InlineQueryResultCachedDocument or InlineQueryResultCachedGif or InlineQueryResultCachedMpeg4Gif or InlineQueryResultCachedPhoto or InlineQueryResultCachedSticker or InlineQueryResultCachedVideo or InlineQueryResultCachedVoice or InlineQueryResultArticle or InlineQueryResultAudio or InlineQueryResultContact or InlineQueryResultGame or InlineQueryResultDocument or InlineQueryResultGif or InlineQueryResultLocation or InlineQueryResultMpeg4Gif or InlineQueryResultPhoto or InlineQueryResultVenue or InlineQueryResultVideo or InlineQueryResultVoice): A JSON-serialized object describing the message to be sent
Returns
SentWebAppMessage
Examples
- Required Parameters
await bot.answer_web_app_query(
web_app_query_id=your_web_app_query_id_here,
result=your_result_here
)