Created
January 24, 2022 15:28
-
-
Save ni5arga/ecb8cd4926feb3383afc84832ab99aaa to your computer and use it in GitHub Desktop.
Pyrogram Bolierplate
This file contains hidden or 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 asyncio import run | |
from pyrogram import Client, filters, idle | |
from config import API_ID, API_HASH, BOT_TOKEN | |
client = Client( | |
":memory:", | |
api_id=API_ID, | |
api_hash=API_HASH, | |
bot_token=BOT_TOKEN | |
) # State API_ID, API_HASH & BOT_TAKEN in config.py | |
async def main(): | |
await client.start() | |
print("Started") | |
await idle() | |
run(main()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment