Skip to content

Commit

Permalink
CustomMarkdown support for gcasts
Browse files Browse the repository at this point in the history
gadmincast, gucast, and gcast now all support premium emojis and spoiler messages
  • Loading branch information
ufoptg committed Feb 12, 2024
1 parent 30fcd2b commit 03cb5d7
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions plugins/globaltools.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Ultroid - UserBot
# Copyright (C) 2021-2023 TeamUltroid
# Copyright (C) 2021-2024 TeamUltroid
#
# This file is a part of < https://github.com/TeamUltroid/Ultroid/ >
# PLease read the GNU Affero General Public License in
Expand Down Expand Up @@ -55,6 +55,7 @@
ungban,
ungmute,
)
from pyUltroid.fns.custom_markdown import CustomMarkdown
from pyUltroid.fns.tools import create_tl_btn, format_btn, get_msg_button

from . import (
Expand Down Expand Up @@ -484,7 +485,8 @@ async def gcast(event):
reply=False,
)
else:
await event.client.send_message(
ultroid_bot.parse_mode = CustomMarkdown()
await ultroid_bot.send_message(
chat, msg, file=reply.media if reply else None
)
done += 1
Expand All @@ -502,7 +504,8 @@ async def gcast(event):
reply=False,
)
else:
await event.client.send_message(
ultroid_bot.parse_mode = CustomMarkdown()
await ultroid_bot.send_message(
chat, msg, file=reply.media if reply else None
)
done += 1
Expand Down Expand Up @@ -559,7 +562,8 @@ async def gucast(event):
reply=False,
)
else:
await event.client.send_message(
ultroid_bot.parse_mode = CustomMarkdown()
await ultroid_bot.send_message(
chat, msg, file=reply.media if reply else None
)
done += 1
Expand Down

0 comments on commit 03cb5d7

Please sign in to comment.