peyk.platforms.telegram.methods.save_prepared_inline_message¶
- async peyk.platforms.telegram.methods.save_prepared_inline_message(self, user_id: int, result: InlineQueryResultArticle | InlineQueryResultPhoto | InlineQueryResultGif | InlineQueryResultMpeg4Gif | InlineQueryResultVideo | InlineQueryResultAudio | InlineQueryResultVoice | InlineQueryResultDocument | InlineQueryResultLocation | InlineQueryResultVenue | InlineQueryResultContact | InlineQueryResultGame | InlineQueryResultCachedPhoto | InlineQueryResultCachedGif | InlineQueryResultCachedMpeg4Gif | InlineQueryResultCachedSticker | InlineQueryResultCachedDocument | InlineQueryResultCachedVideo | InlineQueryResultCachedVoice | InlineQueryResultCachedAudio | Mapping[str, object], *, allow_user_chats: bool | None = None, allow_bot_chats: bool | None = None, allow_group_chats: bool | None = None, allow_channel_chats: bool | None = None) PreparedInlineMessage¶
Stores a message that can be sent by a user of a Mini App. Returns a PreparedInlineMessage object.
- Parameters:
user_id – Unique identifier of the target user that can use the prepared message
result – A JSON-serialized object describing the message to be sent
allow_user_chats – Pass True if the message can be sent to private chats with users
allow_bot_chats – Pass True if the message can be sent to private chats with bots
allow_group_chats – Pass True if the message can be sent to group and supergroup chats
allow_channel_chats – Pass True if the message can be sent to channel chats