randydev commited on
Commit
24a2cce
·
verified ·
1 Parent(s): bc87a54

Update chatbot/plugins/chat.py

Browse files
Files changed (1) hide show
  1. chatbot/plugins/chat.py +0 -3
chatbot/plugins/chat.py CHANGED
@@ -101,11 +101,8 @@ async def askcmd(client: Client, message: Message):
101
  document="chat.txt",
102
  disable_notification=True
103
  )
104
- await pro.delete()
105
  os.remove("chat.txt")
106
  else:
107
  await message.reply_text(output, disable_web_page_preview=True)
108
- await client.send_chat_action(message.chat.id, enums.ChatAction.CANCEL)
109
- return
110
  except Exception as e:
111
  return await message.reply_text(f"Error: {e}")
 
101
  document="chat.txt",
102
  disable_notification=True
103
  )
 
104
  os.remove("chat.txt")
105
  else:
106
  await message.reply_text(output, disable_web_page_preview=True)
 
 
107
  except Exception as e:
108
  return await message.reply_text(f"Error: {e}")