ChosenInlineResult.edit_message_media()#
- ChosenInlineResult.edit_message_media()#
Edit animation, audio, document, photo or video messages attached to sent
InlineQueryResult
messages.Bound method edit_message_media of
ChosenInlineResult
.- Parameters:
media (
InputMedia
) – One of the InputMedia objects describing an animation, audio, document, photo or video.reply_markup (
InlineKeyboardMarkup
, optional) – An InlineKeyboardMarkup object.file_name (
str
, optional) – File name of the media to be sent. Not applicable to photos. Defaults to file’s path basename.
- Returns:
bool
– On success, True is returned.- Raises:
RPCError – In case of a Telegram RPC error.