This commit is contained in:
jxxghp
2023-06-08 17:36:16 +08:00
parent 0d0b078a31
commit 56eba6b6c4
2 changed files with 3 additions and 1 deletions

View File

@ -167,6 +167,8 @@ class Telegram(metaclass=Singleton):
# 发送图文消息
if image:
# 转换TMDB图片质量
image = image.replace("original", "w500")
res = request.get_res("https://api.telegram.org/bot%s/sendPhoto?" % self._telegram_token + urlencode(
{"chat_id": chat_id, "photo": image, "caption": caption, "parse_mode": "Markdown"}))
if __res_parse(res):