We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: 'coroutine' object is not subscriptable
When calling AsyncPoeApi.send_message methods with a specified chatId parameter, an error occurs:
AsyncPoeApi.send_message
chatId
The error occurs in the code located at: envs\poe_wrapper39\lib\site-packages\poe_api_wrapper\async_api.py:494:
envs\poe_wrapper39\lib\site-packages\poe_api_wrapper\async_api.py:494
self.current_thread[bot] = await self.get_chat_history(bot=bot)['data'][bot]
AsyncPoeApi.delete_chat
The issue was resolved by modifying the code as follows:
# self.current_thread[bot] = await self.get_chat_history(bot=bot)['data'][bot] temp = await self.get_chat_history(bot=bot) self.current_thread[bot] = temp['data'][bot]
and
# chatdata = await self.get_chat_history(bot=bot)['data'][bot] temp = await self.get_chat_history(bot=bot) chatdata = temp['data'][bot]
The text was updated successfully, but these errors were encountered:
Thanks for your report. This is resolved.
Sorry, something went wrong.
No branches or pull requests
Bug Report
TypeError: 'coroutine' object is not subscriptable
Description
When calling
AsyncPoeApi.send_message
methods with a specifiedchatId
parameter, an error occurs:The error occurs in the code located at:
envs\poe_wrapper39\lib\site-packages\poe_api_wrapper\async_api.py:494
:Steps to Reproduce
AsyncPoeApi.send_message
method with a specifiedchatId
parameter.AsyncPoeApi.delete_chat
method with a specifiedchatId
parameter.Resolution
The issue was resolved by modifying the code as follows:
and
Environment
The text was updated successfully, but these errors were encountered: