mirror of
https://github.com/PaiGramTeam/PamGram.git
synced 2024-11-29 00:42:44 +00:00
🔧 合并可折叠 if
语句
This commit is contained in:
parent
f9b8048f1b
commit
c72159b357
@ -10,12 +10,10 @@ async def start(update: Update, context: CallbackContext) -> None:
|
|||||||
user = update.effective_user
|
user = update.effective_user
|
||||||
message = update.message
|
message = update.message
|
||||||
args = context.args
|
args = context.args
|
||||||
if args is not None:
|
if args is not None and len(args) >= 1 and args[0] == "inline_message":
|
||||||
if len(args) >= 1:
|
await message.reply_markdown_v2(f"你好 {user.mention_markdown_v2()} {escape_markdown('!我是派蒙 !')}\n"
|
||||||
if args[0] == "inline_message":
|
f"{escape_markdown('发送 /help 命令即可查看命令帮助')}")
|
||||||
await message.reply_markdown_v2(f"你好 {user.mention_markdown_v2()} {escape_markdown('!我是派蒙 !')}\n"
|
return
|
||||||
f"{escape_markdown('发送 /help 命令即可查看命令帮助')}")
|
|
||||||
return
|
|
||||||
await update.message.reply_markdown_v2(f"你好 {user.mention_markdown_v2()} {escape_markdown('!我是派蒙 !')}")
|
await update.message.reply_markdown_v2(f"你好 {user.mention_markdown_v2()} {escape_markdown('!我是派蒙 !')}")
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user