mirror of
https://github.com/PaiGramTeam/PaiGram.git
synced 2024-11-25 18:04:10 +00:00
🐛 Fix the issue where the owner cannot be retrieved
This commit is contained in:
parent
c0fbabaf14
commit
a1a0c6913c
@ -97,13 +97,12 @@ class Post(Plugin.Conversation):
|
|||||||
]
|
]
|
||||||
url = f"https://www.miyoushe.com/ys/article/{post_info.post_id}"
|
url = f"https://www.miyoushe.com/ys/article/{post_info.post_id}"
|
||||||
text = f"发现官网推荐文章 <a href='{url}'>{post_info.subject}</a>\n是否开始处理"
|
text = f"发现官网推荐文章 <a href='{url}'>{post_info.subject}</a>\n是否开始处理"
|
||||||
for user in config.admins:
|
try:
|
||||||
try:
|
await context.bot.send_message(
|
||||||
await context.bot.send_message(
|
config.owner, text, parse_mode=ParseMode.HTML, reply_markup=InlineKeyboardMarkup(buttons)
|
||||||
user.user_id, text, parse_mode=ParseMode.HTML, reply_markup=InlineKeyboardMarkup(buttons)
|
)
|
||||||
)
|
except BadRequest as exc:
|
||||||
except BadRequest as exc:
|
logger.error("发送消息失败 %s", exc.message)
|
||||||
logger.error("发送消息失败 %s", exc.message)
|
|
||||||
|
|
||||||
@conversation.entry_point
|
@conversation.entry_point
|
||||||
@handler.callback_query(pattern=r"^post_admin\|", block=False)
|
@handler.callback_query(pattern=r"^post_admin\|", block=False)
|
||||||
|
Loading…
Reference in New Issue
Block a user