Skip to content

Commit 92e297a

Browse files
authored
v2.3.6 fix parse mode (#45)
1 parent 236f779 commit 92e297a

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

bot/telegram_bot.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -990,7 +990,11 @@ def send_new_feature_message(context, new_feature_message):
990990

991991
for user_id in users:
992992
try:
993-
context.bot.send_message(chat_id=user_id, text=new_feature_message)
993+
context.bot.send_message(
994+
chat_id=user_id,
995+
text=new_feature_message,
996+
parse_mode=ParseMode.HTML,
997+
)
994998
no_of_users += 1
995999
except Exception as e:
9961000
try:
@@ -1022,7 +1026,6 @@ def notify_all(update, context):
10221026
update.message.reply_text(
10231027
f"Preview:\n{new_feature_message}",
10241028
reply_markup=reply_markup,
1025-
parse_mode=ParseMode.HTML,
10261029
)
10271030
else:
10281031
update.message.reply_text("You are not authorized to use this command.")

release_notes.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
# Release Notes
2+
## Version 2.3.6 - Date 3 May 2024
3+
### Quick Fix 🛠️
4+
- Fix parse mode for /notifyall command
5+
26
## Version 2.3.5 - Date 3 May 2024
37
### For Developer 🧑‍💻
48
- Add parse html for /notifyall command to send message with html tags

0 commit comments

Comments
 (0)