Bot 无法通过 file_id 发送频道照片

Bot can't send channel photo by file_id

我使用 python,这是一个问题。首先我使用方法 get_chat 获取 file_id 的照片聊天作为示例。

import telebot
bot = telebot.TeleBot("xxxxxxxxxxxxxxxxxxxxxxxx")
s = bot.get_chat('@codygarbrandt_best')
print(s.photo.big_file_id)

那我想把这张照片发给自己

bot.send_photo(my_chat_id , s.photo.big_file_id )

但是我得到以下错误。

Bad Request: type of file mismatch

我记得以前能用,现在怎么实现?

通过get_chat方法读取的big_file_id只能用于下载照片。
您必须自己将文件存储在本地,然后重新发送。

Unique file identifier of big (640x640) chat photo. This file_id can be used only for photo download. [doc]