Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
v2.3.6 fix parse mode
  • Loading branch information
brucewzj99 committed May 3, 2024
commit 7b96e08352178f952fa5a13e26f3aea718de32ea
9 changes: 7 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 @@ -1020,7 +1024,8 @@ def notify_all(update, context):
]
reply_markup = InlineKeyboardMarkup(keyboard)
update.message.reply_text(
f"Preview:\n{new_feature_message}", reply_markup=reply_markup
f"Preview:\n{new_feature_message}",
reply_markup=reply_markup,
)
else:
update.message.reply_text("You are not authorized to use this command.")
Expand Down
8 changes: 8 additions & 0 deletions release_notes.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
# 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

## Version 2.3.4 - Date 3 May 2024
### Enhancement 🔥
- Added FAQ section
Expand Down