This commit is contained in:
Hafitz Setya 2021-08-23 07:28:24 +07:00 committed by GitHub
parent a6566236cc
commit a35f8aff1b
Signed by untrusted user: GitHub
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -52,10 +52,9 @@ Type /{BotCommands.HelpCommand} to get a list of available commands
buttons.buildbutton("Repo", "https://github.com/Slam-Team/slam-mirrorbot")
buttons.buildbutton("Channel", "https://t.me/SlamMirrorUpdates")
reply_markup = InlineKeyboardMarkup(buttons.build_menu(2))
uptime = get_readable_time((time.time() - botStartTime))
if CustomFilters.authorized_user(update) or CustomFilters.authorized_chat(update):
if update.message.chat.type == "private" :
sendMessage(f"Hey I'm Alive 🙂\nSince: <code>{uptime}</code>", context.bot, update)
sendMarkup(start_string, context.bot, update, reply_markup)
else :
sendMarkup(start_string, context.bot, update, reply_markup)
else :