ChaterJee 0.3.8__tar.gz → 0.4.0__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.
@@ -227,7 +227,7 @@ class ChatLogs:
227
227
  self.txt = f"File {file_path} not Found!"
228
228
  await self.sendUpdate(update, context)
229
229
  else:
230
- JSONfiles = get_json_files(".")
230
+ JSONfiles = self.get_json_files(".")
231
231
  #self.txt = "Expected a JSON file as argument. Nothing provided."
232
232
  #await self.sendUpdate(update, context)
233
233
  await context.bot.sendChatAction(chat_id=self.CHATID, action="typing")
@@ -242,7 +242,7 @@ class ChatLogs:
242
242
  self.txt = f"No JSON file found in the current directory!"
243
243
  await self.sendUpdate(update, context)
244
244
 
245
- def get_json_files(directory):
245
+ def get_json_files(self, directory):
246
246
  json_files = []
247
247
  for filename in os.listdir(directory):
248
248
  if filename.endswith(".json"):
@@ -252,6 +252,7 @@ class ChatLogs:
252
252
  async def SendEditButton(self, update: Update, context: ContextTypes.DEFAULT_TYPE):
253
253
  self.smsID.append(update.message.message_id)
254
254
  file_name = update.message.text[6:]
255
+ print(file_name)
255
256
  extender = f"?variables={encoded_params}&fileNAME={file_name}"
256
257
  await context.bot.sendChatAction(chat_id=self.CHATID, action="typing")
257
258
  msg = await update.message.reply_text(
@@ -264,6 +265,7 @@ class ChatLogs:
264
265
  ),
265
266
  )
266
267
  self.smsID.append(msg.message_id)
268
+ return ConversationHandler.END
267
269
 
268
270
  async def web_app_data(self, update: Update, context: ContextTypes.DEFAULT_TYPE) -> None :
269
271
  data = json.loads(update.effective_message.web_app_data.data)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ChaterJee
3
- Version: 0.3.8
3
+ Version: 0.4.0
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.3.8
3
+ Version: 0.4.0
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.3.8',
5
+ version='0.4.0',
6
6
  packages=find_packages(),
7
7
  install_requires=[
8
8
  'python-telegram-bot==20.7',
File without changes
File without changes