我制作了一个机器人来收集包括照片在内的一些信息,我需要保存照片。我只能从相册中保存 1 张照片,如何保存所有内容?
我将 python3 与 pyTelegramBotAPI 一起使用
@bot.message_handler(func=lambda message: True, commands=['test'])
def test(message):
text_message = 'some question'
bot.send_message(message.chat.id,text_message)
bot.register_next_step_handler(message, test2)
def test2(message):
file_info = bot.get_file(message.photo[-1].file_id)
print(file_info)
我需要获取一组数据或下载所有照片。