• Не запускается бот aiogram, как исправить?

    @gamerlock Автор вопроса
    При написании любого сообщения происходит это
    GeekGpt: 521 Server Error:  for url: https://ai.fakeopen.com/v1/chat/completions
    ERROR:asyncio:Task exception was never retrieved
    future: <Task finished name='Task-9' coro=<Dispatcher._process_polling_updates() done, defined at /usr/local/lib/python3.8/dist-packages/aiogram/dispatcher/dispatcher.py:407> exception=UnicodeEncodeError('latin-1', "{733236088: [{'role': 'user', 'content': '5'}, {'role': 'assistant', 'content': '\u0418\u0437\u0432\u0438\u043d\u0438\u0442\u0435, \u043f\u0440\u043e\u0438\u0437\u043e\u0448\u043b\u0430 \u043e\u0448\u0438\u0431\u043a\u0430.'}]}", 81, 89, 'ordinal not in range(256)')>
    Traceback (most recent call last):
      File "/usr/local/lib/python3.8/dist-packages/aiogram/dispatcher/dispatcher.py", line 415, in _process_polling_updates
        for responses in itertools.chain.from_iterable(await self.process_updates(updates, fast)):
      File "/usr/local/lib/python3.8/dist-packages/aiogram/dispatcher/dispatcher.py", line 235, in process_updates
        return await asyncio.gather(*tasks)
      File "/usr/local/lib/python3.8/dist-packages/aiogram/dispatcher/handler.py", line 116, in notify
        response = await handler_obj.handler(*args, **partial_data)
      File "/usr/local/lib/python3.8/dist-packages/aiogram/dispatcher/dispatcher.py", line 256, in process_update
        return await self.message_handlers.notify(update.message)
      File "/usr/local/lib/python3.8/dist-packages/aiogram/dispatcher/handler.py", line 116, in notify
        response = await handler_obj.handler(*args, **partial_data)
      File "/root/Telegragpt/main.py", line 58, in send_welcome
        print(conversation_history)
    UnicodeEncodeError: 'latin-1' codec can't encode characters in position 81-88: ordinal not in range(256)
    Написано