mais precisamente aqui: https://github.com/AmanoTeam/amanobot/commit/d348475c25fa8db27fc0eae1be59a2d4ecf7a196
Читать полностью…a função download_file não seria: bot.download_file(msg['photo'][-1]['file_id'], 'output.jpg') ?
Читать полностью…esse erro é só na versão normal da lib. na versão assíncrona ele não estava presente
Читать полностью…Traceback (most recent call last):
File "/home/icaro/.local/lib/python3.8/site-packages/amanobot/loop.py", line 32, in run_forever
self._handle(msg)
File "main.py", line 19, in handle
bot.download_file(msg['photo'][-1]['file_id'], 'oi.jpg')
File "/home/icaro/.local/lib/python3.8/site-packages/amanobot/__init__.py", line 1257, in download_file
r = api.download((self._token, f['file_path']), preload_content=False)
File "/home/icaro/.local/lib/python3.8/site-packages/amanobot/api.py", line 173, in download
r = pool.request('GET', _fileurl(req), **user_kw)
File "/home/icaro/.local/lib/python3.8/site-packages/amanobot/api.py", line 167, in _fileurl
base_url, token, path = req
ValueError: not enough values to unpack (expected 3, got 2)