Closed Luke-in-the-sky closed 6 months ago
The issue seems to be with https://github.com/snowby666/poe-api-wrapper/blob/d124147fb93df20b32b89f040f8c22b1ff7d702d/poe_api_wrapper/api.py#L916C48-L916C48
def chat_break(self, bot: str, chatId: int=None, chatCode: str=None):
bot = bot_map(bot)
chatdata = self.get_threadData(bot, chatCode, chatId)
chatId = chatdata['chatId']
variables = {'chatId': chatId, 'clientNonce': generate_nonce()}
self.send_request('gql_POST', 'SendChatBreakMutation', variables) <=====
SendChatBreakMutation
is not helping. Tried with ChatHelpers_addMessageBreakEdgeMutation_Mutation
instead, and it seems to work:
Context cleared
message in the Poe UI, andThanks for your fix. I've merged the PR.
I can send messages and read them back, but I can't clear the context. I am using
bot
andchatCode
to identify the chat I wan to clear, just like in the readme examplebut then I can tell the context is NOT cleared, both by the type of answers I get to new messages and by opening up the chat thread in poe.com and seeing that there is no "Context cleared" event in the chain of messages