import asyncpg
from pyrogram import Client
from pyrogram_asyncpg_storage import PostgreSQLStorage
app = Client(...)
async def set_session():
pool = await asyncpg.create_pool()
session = PostgreSQLStorage(name=..., pool=pool)
app.storage = session
app.run(set_session())
app.run()
-
Notifications
You must be signed in to change notification settings - Fork 0
drizzt/pyrogram-asyncpg-storage
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Pyrogram asyncpg storage
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published