This commit is contained in:
yasirarism 2023-07-04 12:13:44 +07:00 committed by GitHub
parent 91d25b66d2
commit f55504724c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -71,7 +71,9 @@ async def kbbi_search(_, ctx: Client):
@app.on_cmd("carbon")
async def carbon_make(_, ctx: Client):
if len(ctx.command) == 1 or not ctx.reply_to_message:
if len(ctx.command) == 1 and not reply_to_message:
return await ctx.reply("Please reply text to make carbon or add text after command.")
if not reply_to_message:
return await ctx.reply("Please reply text to make carbon or add text after command.")
if ctx.reply_to_message.text:
text = ctx.reply_to_message.text