🐛 Fix the issue where the owner cannot be retrieved

This commit is contained in:
洛水居室 2023-03-14 18:19:29 +08:00
parent c0fbabaf14
commit a1a0c6913c
No known key found for this signature in database
GPG Key ID: C9DE87DA724B88FC

View File

@ -97,10 +97,9 @@ class Post(Plugin.Conversation):
]
url = f"https://www.miyoushe.com/ys/article/{post_info.post_id}"
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, parse_mode=ParseMode.HTML, reply_markup=InlineKeyboardMarkup(buttons)
config.owner, text, parse_mode=ParseMode.HTML, reply_markup=InlineKeyboardMarkup(buttons)
)
except BadRequest as exc:
logger.error("发送消息失败 %s", exc.message)