mirror of
https://github.com/PaiGramTeam/PaiGram.git
synced 2024-11-16 04:35:49 +00:00
🐛 修复自动推送文本 parse_mode
不正确的问题
This commit is contained in:
parent
c29fb1b58d
commit
b458a2d567
@ -102,7 +102,9 @@ class Post(Plugin.Conversation, BasePlugin.Conversation):
|
||||
text = f"发现官网推荐文章 <a href='{url}'>{post_info.subject}</a>\n是否开始处理"
|
||||
for user in config.admins:
|
||||
try:
|
||||
await context.bot.send_message(user.user_id, text, reply_markup=InlineKeyboardMarkup(buttons))
|
||||
await context.bot.send_message(
|
||||
user.user_id, text, parse_mode=ParseMode.HTML, reply_markup=InlineKeyboardMarkup(buttons)
|
||||
)
|
||||
except BadRequest as exc:
|
||||
logger.error(f"发送消息失败 {repr(exc)}")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user