mirror of
https://github.com/TheFunny/TelegramTwitterMediaBot.git
synced 2026-09-23 23:32:05 +00:00
fix missing return
This commit is contained in:
@@ -173,10 +173,11 @@ async def cmd_set_template(update: Update, context: ContextTypes.DEFAULT_TYPE) -
|
||||
if not reply:
|
||||
await update.effective_message.reply_text("Please reply to a message to set as template.")
|
||||
return
|
||||
if '[]' in reply.text_html:
|
||||
context.user_data['template'] = reply.text_html
|
||||
await update.effective_message.reply_text("Template set.")
|
||||
await update.effective_message.reply_text("Please reply to a message with [] to set as template.")
|
||||
if '[]' not in reply.text_html:
|
||||
await update.effective_message.reply_text("Please reply to a message with [] to set as template.")
|
||||
return
|
||||
context.user_data['template'] = reply.text_html
|
||||
await update.effective_message.reply_text("Template set.")
|
||||
|
||||
|
||||
@send_action(ChatAction.TYPING)
|
||||
|
||||
Reference in New Issue
Block a user