Skip to content

Commit

Permalink
Restart Display
Browse files Browse the repository at this point in the history
  • Loading branch information
MysterySD authored Sep 20, 2021
1 parent 063f671 commit 18daa32
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tobrot/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from pyrogram.raw import functions, types
from pyrogram.handlers import CallbackQueryHandler, MessageHandler

from tobrot import app, bot
from tobrot import app, bot, dispatcher
from tobrot import (
AUTH_CHANNEL,
CANCEL_COMMAND_G,
Expand Down Expand Up @@ -49,7 +49,7 @@
from tobrot.helper_funcs.download import down_load_media_f
from tobrot.plugins.call_back_button_handler import button
# the logging things
from tobrot.plugins.torrent_search import searchhelp
from tobrot.plugins.torrent_search import searchhelp, sendMessage
from tobrot.helper_funcs.bot_commands import BotCommands
from tobrot.plugins.choose_rclone_config import rclone_command_f
from tobrot.plugins.custom_thumbnail import clear_thumb_nail, save_thumb_nail
Expand Down Expand Up @@ -96,6 +96,11 @@
os.makedirs(DOWNLOAD_LOCATION)

bot.set_my_commands(botcmds)

#now=datetime.now(pytz.timezone('Asia/Kolkata'))
#current = now.strftime('%Y/%m/%d %I:%M:%P')
dispatcher.bot.sendMessage(f"Bot is Successfully Restarted By Heroku !! ")

# Starting The Bot
app.start()
##############################################################################
Expand Down

0 comments on commit 18daa32

Please sign in to comment.