Skip to content
This repository has been archived by the owner on May 15, 2021. It is now read-only.

Commit

Permalink
Update spoiler.py
Browse files Browse the repository at this point in the history
  • Loading branch information
code-rgb committed Nov 9, 2020
1 parent 412cb89 commit 8b3431c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions userge/plugins/bot/spoiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
from userge import Config, Message, get_collection, userge
from userge.utils import mention_html


CHANNEL = userge.getCLogger(__name__)
PATH = "./userge/xcache/spoiler_db.json"
BOT_BAN = get_collection("BOT_BAN")
Expand Down Expand Up @@ -67,7 +68,7 @@ async def spoiler_alert_(message: Message):
bot_name = (await userge.bot.get_me()).username
link = f"https://t.me/{bot_name}?start={rnd_id}"
buttons = None
text_ = "**{} Shared A Spoiler** !\n[> **Click To View** <]({})".format(
text_ = "<b>{} Shared A Spoiler</b> !\n[<b>Click To View</b>]({})".format(
mention_html(message.from_user.id, message.from_user.first_name), link
)
if message.client.is_bot:
Expand Down Expand Up @@ -189,7 +190,7 @@ async def nobtnspoiler_(_, c_q: CallbackQuery):
url = f"https://t.me/{bot_name}?start={c_q.matches[0].group(1)}"
try:
await c_q.edit_message_text(
"**{} Shared A Spoiler** !\n[> **Click To View** <]({})".format(
"<b>{} Shared A Spoiler</b> !\n[<b>Click To View</b>]({})".format(
mention_html(u_id, u_name), url
),
disable_web_page_preview=True,
Expand Down

1 comment on commit 8b3431c

@vercel
Copy link

@vercel vercel bot commented on 8b3431c Nov 9, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.