aiopg storage for pyrogram
Project description
Motivation
I need to work with multiple telegram session and keep all of them in a single PostgreSQL database. I use aiopg with SQLAlchemy hence I’ve written a wrapper for this stack. Maybe someone also requires such
Usage
` import aiopg from pyrogram import Client from pyrogram_aiopg_storage import PostgreSQLStorage db_pool = await aiopg.sa.create_engine(...) session = PostgreSQLStorage(db_pool=db_pool, user_id=..., phone=...) pyrogram = Client(session_name=session) await pyrogram.connect() `
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for pyrogram-aiopg-storage-0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1d038d258d498374cd99ef66c2fbbd92c24724cb26862c6cb2b7d697c6427a3d |
|
MD5 | 4d98e082106f6edf4e99dbc0584eac9b |
|
BLAKE2b-256 | d5da9befb8a00e880ec60cdb26e5a41d97e9a535544fb274dcecb6fd87b5315a |