Skip to content

Commit 7b96e08

Browse files
committed
v2.3.6 fix parse mode
1 parent 3ac555b commit 7b96e08

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

bot/telegram_bot.py

Lines changed: 7 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:
@@ -1020,7 +1024,8 @@ def notify_all(update, context):
10201024
]
10211025
reply_markup = InlineKeyboardMarkup(keyboard)
10221026
update.message.reply_text(
1023-
f"Preview:\n{new_feature_message}", reply_markup=reply_markup
1027+
f"Preview:\n{new_feature_message}",
1028+
reply_markup=reply_markup,
10241029
)
10251030
else:
10261031
update.message.reply_text("You are not authorized to use this command.")

release_notes.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
# Release Notes
2+
## Version 2.3.6 - Date 3 May 2024
3+
### Quick Fix 🛠️
4+
- Fix parse mode for /notifyall command
5+
6+
## Version 2.3.5 - Date 3 May 2024
7+
### For Developer 🧑‍💻
8+
- Add parse html for /notifyall command to send message with html tags
9+
210
## Version 2.3.4 - Date 3 May 2024
311
### Enhancement 🔥
412
- Added FAQ section

0 commit comments

Comments
 (0)