answerGuestQuery¶
Returns: SentGuestMessage
- class aiogram.methods.answer_guest_query.AnswerGuestQuery(*, guest_query_id: str, result: InlineQueryResultCachedAudio | InlineQueryResultCachedDocument | InlineQueryResultCachedGif | InlineQueryResultCachedMpeg4Gif | InlineQueryResultCachedPhoto | InlineQueryResultCachedSticker | InlineQueryResultCachedVideo | InlineQueryResultCachedVoice | InlineQueryResultArticle | InlineQueryResultAudio | InlineQueryResultContact | InlineQueryResultGame | InlineQueryResultDocument | InlineQueryResultGif | InlineQueryResultLocation | InlineQueryResultMpeg4Gif | InlineQueryResultPhoto | InlineQueryResultVenue | InlineQueryResultVideo | InlineQueryResultVoice, **extra_data: Any)[source]¶
Use this method to reply to a received guest message. On success, a
aiogram.types.sent_guest_message.SentGuestMessageobject is returned.Source: https://core.telegram.org/bots/api#answerguestquery
- guest_query_id: str¶
Unique identifier for the query to be answered
- result: InlineQueryResultCachedAudio | InlineQueryResultCachedDocument | InlineQueryResultCachedGif | InlineQueryResultCachedMpeg4Gif | InlineQueryResultCachedPhoto | InlineQueryResultCachedSticker | InlineQueryResultCachedVideo | InlineQueryResultCachedVoice | InlineQueryResultArticle | InlineQueryResultAudio | InlineQueryResultContact | InlineQueryResultGame | InlineQueryResultDocument | InlineQueryResultGif | InlineQueryResultLocation | InlineQueryResultMpeg4Gif | InlineQueryResultPhoto | InlineQueryResultVenue | InlineQueryResultVideo | InlineQueryResultVoice¶
A JSON-serialized object describing the message to be sent
Usage¶
As bot method¶
result: SentGuestMessage = await bot.answer_guest_query(...)
Method as object¶
Imports:
from aiogram.methods.answer_guest_query import AnswerGuestQueryalias:
from aiogram.methods import AnswerGuestQuery
With specific bot¶
result: SentGuestMessage = await bot(AnswerGuestQuery(...))
As reply into Webhook in handler¶
return AnswerGuestQuery(...)