ChaterJee 0.1.6__tar.gz → 0.1.8__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -49,6 +49,9 @@ class ChatLogs:
49
49
  fEdit_handler = CommandHandler('edit', self.EditorBabu)
50
50
  application.add_handler(fEdit_handler)
51
51
 
52
+ cmd_handler = CommandHandler('sh', self.commands)
53
+ application.add_handler(cmd_handler)
54
+
52
55
  #jobs_handler = CommandHandler('jobs', self.ShowJobs)
53
56
  #application.add_handler(jobs_handler)
54
57
 
@@ -75,7 +78,7 @@ class ChatLogs:
75
78
  #application.add_handler(jedit_handler)
76
79
 
77
80
  application.add_handler(MessageHandler(filters.StatusUpdate.WEB_APP_DATA, self.web_app_data))
78
- application.add_handler(MessageHandler(filters.TEXT, self.commands))
81
+ #application.add_handler(MessageHandler(filters.TEXT, self.commands))
79
82
 
80
83
  application.run_polling()
81
84
 
@@ -343,7 +346,7 @@ class ChatLogs:
343
346
 
344
347
  async def commands(self, update: Update, context: ContextTypes.DEFAULT_TYPE):
345
348
  self.smsID.append(update.message.message_id)
346
- cmd2run = update.message.text.strip()
349
+ cmd2run = ' '.join(context.args) #update.message.text.strip()
347
350
  cmd0 = cmd2run.split(' ')[0]
348
351
  if cmd0=='cd':
349
352
  cmd1 = cmd2run[3:]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ChaterJee
3
- Version: 0.1.6
3
+ Version: 0.1.8
4
4
  Summary: Communicate your project updates via Telegram Bot!
5
5
  Author: Pallab Dutta
6
6
  Author-email: pallab9997@gmail.com
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ChaterJee
3
- Version: 0.1.6
3
+ Version: 0.1.8
4
4
  Summary: Communicate your project updates via Telegram Bot!
5
5
  Author: Pallab Dutta
6
6
  Author-email: pallab9997@gmail.com
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name='ChaterJee',
5
- version='0.1.6',
5
+ version='0.1.8',
6
6
  packages=find_packages(),
7
7
  install_requires=[
8
8
  'python-telegram-bot==20.7',
File without changes
File without changes