ChaterJee 0.3.0__py3-none-any.whl → 0.3.2__py3-none-any.whl
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/ChaterJee.py +20 -11
- {chaterjee-0.3.0.dist-info → chaterjee-0.3.2.dist-info}/METADATA +1 -1
- chaterjee-0.3.2.dist-info/RECORD +6 -0
- chaterjee-0.3.0.dist-info/RECORD +0 -6
- {chaterjee-0.3.0.dist-info → chaterjee-0.3.2.dist-info}/WHEEL +0 -0
- {chaterjee-0.3.0.dist-info → chaterjee-0.3.2.dist-info}/top_level.txt +0 -0
ChaterJee/ChaterJee.py
CHANGED
@@ -103,7 +103,7 @@ class ChatLogs:
|
|
103
103
|
jobs = json.load(ffr)
|
104
104
|
self.jobs = jobs
|
105
105
|
|
106
|
-
reply_keyboard = [[f'{job}'] for job in list(self.jobs.keys())]
|
106
|
+
reply_keyboard = [[f'{job}'] for job in list(self.jobs.keys())[::-1]] # inverse to show latest jobs on top
|
107
107
|
await context.bot.sendChatAction(chat_id=self.CHATID, action="typing")
|
108
108
|
msg = await update.message.reply_text("Select a job to get updates on",\
|
109
109
|
reply_markup=ReplyKeyboardMarkup(reply_keyboard, one_time_keyboard=True, input_field_placeholder="Select the job."\
|
@@ -219,6 +219,7 @@ class ChatLogs:
|
|
219
219
|
)
|
220
220
|
),
|
221
221
|
)
|
222
|
+
self.smsID.append(msg.message_id)
|
222
223
|
else:
|
223
224
|
self.txt = f"File {file_path} not Found!"
|
224
225
|
#msg = await context.bot.send_message(chat_id=self.CHATID, text=txt)
|
@@ -282,16 +283,24 @@ class ChatLogs:
|
|
282
283
|
|
283
284
|
async def ClearChat(self, update: Update, context: ContextTypes.DEFAULT_TYPE):
|
284
285
|
self.smsID.append(update.message.message_id)
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
286
|
+
if update.message == 'Yes':
|
287
|
+
await context.bot.sendChatAction(chat_id=self.CHATID, action="typing")
|
288
|
+
msg = await update.message.reply_text(
|
289
|
+
"Full chat history will be cleared", reply_markup=ReplyKeyboardRemove()
|
290
|
+
)
|
291
|
+
self.smsID.append(msg.message_id)
|
292
|
+
for i in self.smsID:
|
293
|
+
await context.bot.delete_message(chat_id=self.CHATID, message_id=i)
|
294
|
+
|
295
|
+
self.smsID = []
|
296
|
+
return ConversationHandler.END
|
297
|
+
elif update.message == 'No':
|
298
|
+
await context.bot.sendChatAction(chat_id=self.CHATID, action="typing")
|
299
|
+
msg = await update.message.reply_text(
|
300
|
+
"Chat history is kept uncleared", reply_markup=ReplyKeyboardRemove()
|
301
|
+
)
|
302
|
+
self.smsID.append(msg.message_id)
|
303
|
+
return ConversationHandler.END
|
295
304
|
|
296
305
|
async def ask2clear(self, update: Update, context: ContextTypes.DEFAULT_TYPE) -> int:
|
297
306
|
self.smsID.append(update.message.message_id)
|
@@ -0,0 +1,6 @@
|
|
1
|
+
ChaterJee/ChaterJee.py,sha256=iJauDlANsAx8fULUlCePYDL0Gm75Z_qwhqP89wURRtc,14200
|
2
|
+
ChaterJee/__init__.py,sha256=tZmkZY2XbzJ8rHDh8nOmb1W73kPecPv3xcEiCPwkZf4,98
|
3
|
+
chaterjee-0.3.2.dist-info/METADATA,sha256=udwPeLJQNKWh3hO-x593hpvSn6cY-PkBWLMhBEcMNTs,5872
|
4
|
+
chaterjee-0.3.2.dist-info/WHEEL,sha256=iAkIy5fosb7FzIOwONchHf19Qu7_1wCWyFNR5gu9nU0,91
|
5
|
+
chaterjee-0.3.2.dist-info/top_level.txt,sha256=Z1UAYoaNybpDiKjqa1yFpti_q0FNECVItb3-9yAh3gM,10
|
6
|
+
chaterjee-0.3.2.dist-info/RECORD,,
|
chaterjee-0.3.0.dist-info/RECORD
DELETED
@@ -1,6 +0,0 @@
|
|
1
|
-
ChaterJee/ChaterJee.py,sha256=68S4irt8YrysxKPCjUpjvx7FTt9vjZRNIGDUQXzKpEo,13674
|
2
|
-
ChaterJee/__init__.py,sha256=tZmkZY2XbzJ8rHDh8nOmb1W73kPecPv3xcEiCPwkZf4,98
|
3
|
-
chaterjee-0.3.0.dist-info/METADATA,sha256=IBDBB1q8sSQm9c-qyq74GUfkSgckiDt8bRVE3qNmjsQ,5872
|
4
|
-
chaterjee-0.3.0.dist-info/WHEEL,sha256=iAkIy5fosb7FzIOwONchHf19Qu7_1wCWyFNR5gu9nU0,91
|
5
|
-
chaterjee-0.3.0.dist-info/top_level.txt,sha256=Z1UAYoaNybpDiKjqa1yFpti_q0FNECVItb3-9yAh3gM,10
|
6
|
-
chaterjee-0.3.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|