Skip to content

Commit

Permalink
fix: bot responding with 2 messages on start.
Browse files Browse the repository at this point in the history
  • Loading branch information
EverythingSuckz committed Feb 19, 2023
1 parent 72259cb commit 4f4a7b7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion WebStreamer/bot/plugins/start.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@
@StreamBot.on_message(filters.command(["start", "help"]) & filters.private)
async def start(_, m: Message):
if Var.ALLOWED_USERS and not ((str(m.from_user.id) in Var.ALLOWED_USERS) or (m.from_user.username in Var.ALLOWED_USERS)):
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.")
return 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.",
disable_web_page_preview=True, quote=True
)
await m.reply(
f'Hi {m.from_user.mention(style="md")}, Send me a file to get an instant stream link.'
)

0 comments on commit 4f4a7b7

Please sign in to comment.