Skip to main content

Pyrogram aiopg storage

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.sa
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()

Metadata

Release files for pyrogram-aiopg-storage 0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyrogram-aiopg-storage 0.3
File Size Uploaded
pyrogram-aiopg-storage-0.3.tar.gz 4.3 kB Details

Release files / pyrogram-aiopg-storage-0.3.tar.gz

Download URL pyrogram-aiopg-storage-0.3.tar.gz
Size 4.3 kB
Tags Source
SHA-256 checksum
How to use checksums
1f0784f2e23a088b3fe664f21894018613d7e6f0d6381a4c8d61669e9847696e
BLAKE2b-256 checksum
How to use checksums
3dd7cc2572c64456a67ea48a71a01cc5713492c9da3df80f77a0d5c8a28ea93e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.22.0 setuptools/42.0.1 requests-toolbelt/0.8.0 tqdm/4.27.0 CPython/3.7.0

Release history Release notifications | RSS feed

This release

0.3 This release

1 release file

0.2

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page