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.
- {chaterjee-0.3.8 → chaterjee-0.4.0}/ChaterJee/ChaterJee.py +4 -2
- {chaterjee-0.3.8 → chaterjee-0.4.0}/ChaterJee.egg-info/PKG-INFO +1 -1
- {chaterjee-0.3.8 → chaterjee-0.4.0}/PKG-INFO +1 -1
- {chaterjee-0.3.8 → chaterjee-0.4.0}/setup.py +1 -1
- {chaterjee-0.3.8 → chaterjee-0.4.0}/ChaterJee/__init__.py +0 -0
- {chaterjee-0.3.8 → chaterjee-0.4.0}/ChaterJee.egg-info/SOURCES.txt +0 -0
- {chaterjee-0.3.8 → chaterjee-0.4.0}/ChaterJee.egg-info/dependency_links.txt +0 -0
- {chaterjee-0.3.8 → chaterjee-0.4.0}/ChaterJee.egg-info/requires.txt +0 -0
- {chaterjee-0.3.8 → chaterjee-0.4.0}/ChaterJee.egg-info/top_level.txt +0 -0
- {chaterjee-0.3.8 → chaterjee-0.4.0}/README.md +0 -0
- {chaterjee-0.3.8 → chaterjee-0.4.0}/setup.cfg +0 -0
@@ -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)
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|