Skip to content

Commit

Permalink
Fixed bug
Browse files Browse the repository at this point in the history
  • Loading branch information
SHABIN-K authored Sep 6, 2021
1 parent 621cb73 commit 8a24490
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions plugins/start.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,10 @@ async def start_command(client: Client, message: Message):

@Bot.on_message(filters.command('start') & filters.private)
async def not_joined(client: Client, message: Message):

try_url = Link
try_url = message.text
try:
command, argument = try_url.split()
Link = f"https://t.me/{client.username}?start={argument}"
text = f"https://t.me/{client.username}?start={argument}"
except ValueError:
pass
reply_markup = InlineKeyboardMarkup([[InlineKeyboardButton("Join Channel", url = client.invitelink)],[InlineKeyboardButton("🔃Try Again", url=try_url)]])
Expand Down

0 comments on commit 8a24490

Please sign in to comment.