try edit reply markup

This commit is contained in:
2024-04-28 01:18:35 +08:00
parent ef17b05c14
commit 0ca9b55ea8
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -57,7 +57,7 @@ async def url_media(update: Update, context: ContextTypes.DEFAULT_TYPE) -> None:
if context.user_data.get('edit_before_forward', False):
message_reply = await update.effective_message.reply_text(
"Reply to edit message.",
reply_markup=ForceReply(selective=True, input_field_placeholder="{URL}"),
reply_markup=ForceReply(selective=True, input_field_placeholder="[URL]"),
reply_to_message_id=update.message.message_id,
)
context.user_data['message_reply'] = message_reply
@@ -96,7 +96,7 @@ async def edit_message(update: Update, context: ContextTypes.DEFAULT_TYPE) -> No
) + update_text[match[1]:]
message_to_send = context.user_data['message_to_send']
await message_to_send[0].edit_caption(update_text)
await context.user_data['message_reply'].edit_message_reply_markup(
await context.user_data['message_reply'].edit_reply_markup(
InlineKeyboardMarkup.from_button(
InlineKeyboardButton("↩️ Confirm", callback_data="forward")
)