• Как перенести бота Python (aiogram) на сервер?

    @PEREGINEC Автор вопроса
    создал новый токен и то самое получаю

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
    File "/usr/local/lib/python3.8/site-packages/aiogram/dispatcher/dispatcher.py", line 332, in _process_polling_updates
    for responses in itertools.chain.from_iterable(await self.process_updates(updates, fast)):
    File "/usr/local/lib/python3.8/site-packages/aiogram/dispatcher/dispatcher.py", line 188, in process_updates
    return await asyncio.gather(*tasks)
    File "/usr/local/lib/python3.8/site-packages/aiogram/dispatcher/handler.py", line 117, in notify
    response = await handler_obj.handler(*args, **partial_data)
    File "/usr/local/lib/python3.8/site-packages/aiogram/dispatcher/dispatcher.py", line 208, in process_update
    return await self.message_handlers.notify(update.message)
    File "/usr/local/lib/python3.8/site-packages/aiogram/dispatcher/handler.py", line 117, in notify
    response = await handler_obj.handler(*args, **partial_data)
    File "/home/bot/main.py", line 124, in process_user_2
    tags = table.gsheet2df('База специалистов', 1, data['name'], data['phone'])
    File "/home/bot/table.py", line 12, in gsheet2df
    sheet = client.open(sheet).get_worksheet(n_list).get_all_records()
    File "/usr/local/lib/python3.8/site-packages/gspread/client.py", line 129, in open
    raise SpreadsheetNotFound
    gspread.exceptions.SpreadsheetNotFound
  • Как упорядочить ключи массива?

    @PEREGINEC Автор вопроса
    можно через foreach прогнать и перезаписать, но мне кажется есть простое решение
  • Как сохранить картинку?

    @PEREGINEC Автор вопроса
    проблема была в другом