Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get replied message instead of text when generating a carbon from a reply #345

Merged
merged 1 commit into from
Jun 27, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions userbot/plugins/carbon.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ async def carbon_api(event):
query = event.pattern_match.group(1)
replied_msg = await event.get_reply_message()
if not query and replied_msg:
query = replied_msg.text
query = replied_msg.message
if query is None:
return await edit_delete(cat, "No text was given")

Expand Down Expand Up @@ -107,7 +107,7 @@ async def kar1_api(event):
query = event.pattern_match.group(1)
replied_msg = await event.get_reply_message()
if not query and replied_msg:
query = replied_msg.text
query = replied_msg.message
if query is None:
return await edit_delete(cat, "No text was given")

Expand Down Expand Up @@ -153,7 +153,7 @@ async def kar2_api(event):
query = event.pattern_match.group(1)
replied_msg = await event.get_reply_message()
if not query and replied_msg:
query = replied_msg.text
query = replied_msg.message
if query is None:
return await edit_delete(cat, "No text was given")

Expand Down Expand Up @@ -201,7 +201,7 @@ async def kar3_api(event):
query = event.pattern_match.group(1)
replied_msg = await event.get_reply_message()
if not query and replied_msg:
query = replied_msg.text
query = replied_msg.message
if query is None:
return await edit_delete(cat, "No text was given")

Expand Down Expand Up @@ -249,7 +249,7 @@ async def kar4_api(event):
query = event.pattern_match.group(1)
replied_msg = await event.get_reply_message()
if not query and replied_msg:
query = replied_msg.text
query = replied_msg.message
if query is None:
return await edit_delete(cat, "No text was given")

Expand Down Expand Up @@ -332,7 +332,7 @@ async def kargb_api(event):
query = event.pattern_match.group(1)
replied_msg = await event.get_reply_message()
if not query and replied_msg:
query = replied_msg.text
query = replied_msg.message
if query is None:
return await edit_delete(cat, "No text was given")

Expand Down