Created
July 20, 2020 22:10
-
-
Save jonatan1609/ee5a958f37d675fbf1512ac48e2bbcee to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pyrogram import Client | |
from apscheduler.schedulers.background import BackgroundScheduler | |
app = Client( | |
"DataDeceUserbot", | |
api_id=1, | |
api_hash="b6b154c3707471f5339bd661645ed3d6" | |
) | |
BOT_USERNAME = "" | |
TEXT = "" | |
def handler(): | |
with app: | |
app.send_message(BOT_USERNAME, TEXT) | |
job = BackgroundScheduler() | |
job.add_job(handler, "interval", hours=1) | |
job.start() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment