ChaterJee 0.2.9__tar.gz → 0.3.1__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.2.9 → chaterjee-0.3.1}/ChaterJee/ChaterJee.py +20 -11
- {chaterjee-0.2.9 → chaterjee-0.3.1}/ChaterJee.egg-info/PKG-INFO +9 -2
- {chaterjee-0.2.9 → chaterjee-0.3.1}/PKG-INFO +9 -2
- {chaterjee-0.2.9 → chaterjee-0.3.1}/setup.py +1 -1
- {chaterjee-0.2.9 → chaterjee-0.3.1}/ChaterJee/__init__.py +0 -0
- {chaterjee-0.2.9 → chaterjee-0.3.1}/ChaterJee.egg-info/SOURCES.txt +0 -0
- {chaterjee-0.2.9 → chaterjee-0.3.1}/ChaterJee.egg-info/dependency_links.txt +0 -0
- {chaterjee-0.2.9 → chaterjee-0.3.1}/ChaterJee.egg-info/requires.txt +0 -0
- {chaterjee-0.2.9 → chaterjee-0.3.1}/ChaterJee.egg-info/top_level.txt +0 -0
- {chaterjee-0.2.9 → chaterjee-0.3.1}/README.md +0 -0
- {chaterjee-0.2.9 → chaterjee-0.3.1}/setup.cfg +0 -0
@@ -169,7 +169,7 @@ class ChatLogs:
|
|
169
169
|
last_line = f.read().decode('utf-8')
|
170
170
|
return last_line.strip()
|
171
171
|
|
172
|
-
def get_last_line(filepath):
|
172
|
+
def get_last_line(self, filepath):
|
173
173
|
if not os.path.exists(filepath):
|
174
174
|
return None
|
175
175
|
|
@@ -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)
|
@@ -1,12 +1,19 @@
|
|
1
|
-
Metadata-Version: 2.
|
1
|
+
Metadata-Version: 2.4
|
2
2
|
Name: ChaterJee
|
3
|
-
Version: 0.
|
3
|
+
Version: 0.3.1
|
4
4
|
Summary: Communicate your project updates via Telegram Bot!
|
5
5
|
Author: Pallab Dutta
|
6
6
|
Author-email: pallab9997@gmail.com
|
7
7
|
Requires-Python: >=3.8
|
8
8
|
Description-Content-Type: text/markdown
|
9
9
|
Requires-Dist: python-telegram-bot==20.7
|
10
|
+
Dynamic: author
|
11
|
+
Dynamic: author-email
|
12
|
+
Dynamic: description
|
13
|
+
Dynamic: description-content-type
|
14
|
+
Dynamic: requires-dist
|
15
|
+
Dynamic: requires-python
|
16
|
+
Dynamic: summary
|
10
17
|
|
11
18
|
# ChaterJee
|
12
19
|
|
@@ -1,12 +1,19 @@
|
|
1
|
-
Metadata-Version: 2.
|
1
|
+
Metadata-Version: 2.4
|
2
2
|
Name: ChaterJee
|
3
|
-
Version: 0.
|
3
|
+
Version: 0.3.1
|
4
4
|
Summary: Communicate your project updates via Telegram Bot!
|
5
5
|
Author: Pallab Dutta
|
6
6
|
Author-email: pallab9997@gmail.com
|
7
7
|
Requires-Python: >=3.8
|
8
8
|
Description-Content-Type: text/markdown
|
9
9
|
Requires-Dist: python-telegram-bot==20.7
|
10
|
+
Dynamic: author
|
11
|
+
Dynamic: author-email
|
12
|
+
Dynamic: description
|
13
|
+
Dynamic: description-content-type
|
14
|
+
Dynamic: requires-dist
|
15
|
+
Dynamic: requires-python
|
16
|
+
Dynamic: summary
|
10
17
|
|
11
18
|
# ChaterJee
|
12
19
|
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|