Skip to content

Commit

Permalink
v2.3.6 fix parse mode (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
brucewzj99 authored May 3, 2024
1 parent 236f779 commit 92e297a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 5 additions & 2 deletions bot/telegram_bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -990,7 +990,11 @@ def send_new_feature_message(context, new_feature_message):

for user_id in users:
try:
context.bot.send_message(chat_id=user_id, text=new_feature_message)
context.bot.send_message(
chat_id=user_id,
text=new_feature_message,
parse_mode=ParseMode.HTML,
)
no_of_users += 1
except Exception as e:
try:
Expand Down Expand Up @@ -1022,7 +1026,6 @@ def notify_all(update, context):
update.message.reply_text(
f"Preview:\n{new_feature_message}",
reply_markup=reply_markup,
parse_mode=ParseMode.HTML,
)
else:
update.message.reply_text("You are not authorized to use this command.")
Expand Down
4 changes: 4 additions & 0 deletions release_notes.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# Release Notes
## Version 2.3.6 - Date 3 May 2024
### Quick Fix 🛠️
- Fix parse mode for /notifyall command

## Version 2.3.5 - Date 3 May 2024
### For Developer 🧑‍💻
- Add parse html for /notifyall command to send message with html tags
Expand Down

0 comments on commit 92e297a

Please sign in to comment.