mirror of
https://github.com/PaiGramTeam/GramCore.git
synced 2024-12-04 18:51:26 +00:00
🐛 Fix Template Service cache edit_inline_media
This commit is contained in:
parent
d10f0d4815
commit
181d284528
@ -129,6 +129,9 @@ class RenderResult:
|
|||||||
"""是 `message.edit_media` 的封装,上传成功后,缓存 telegram 返回的 file_id,方便重复使用"""
|
"""是 `message.edit_media` 的封装,上传成功后,缓存 telegram 返回的 file_id,方便重复使用"""
|
||||||
bot = callback_query.get_bot()
|
bot = callback_query.get_bot()
|
||||||
|
|
||||||
|
if self.is_file_id():
|
||||||
|
file_id = self.photo
|
||||||
|
else:
|
||||||
reply = await self.send_photo_to_helper_channel(bot, filename)
|
reply = await self.send_photo_to_helper_channel(bot, filename)
|
||||||
file_id = self.get_file_id(reply)
|
file_id = self.get_file_id(reply)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user