Skip to content

Commit 4f4a7b7

Browse files
fix: bot responding with 2 messages on start.
1 parent 72259cb commit 4f4a7b7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

WebStreamer/bot/plugins/start.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@
1010
@StreamBot.on_message(filters.command(["start", "help"]) & filters.private)
1111
async def start(_, m: Message):
1212
if Var.ALLOWED_USERS and not ((str(m.from_user.id) in Var.ALLOWED_USERS) or (m.from_user.username in Var.ALLOWED_USERS)):
13-
await m.reply("You are not in the allowed list of users who can use me. Check <a href='https://github.com/EverythingSuckz/TG-FileStreamBot#optional-vars'>this link</a> for more info.")
13+
return await m.reply(
14+
"You are not in the allowed list of users who can use me. \
15+
Check <a href='https://github.com/EverythingSuckz/TG-FileStreamBot#optional-vars'>this link</a> for more info.",
16+
disable_web_page_preview=True, quote=True
17+
)
1418
await m.reply(
1519
f'Hi {m.from_user.mention(style="md")}, Send me a file to get an instant stream link.'
1620
)

0 commit comments

Comments
 (0)