Skip to content

alozovskoy/telethon_postgres_sessionstorage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PostgreSQL session storage for Telethon.

Module development in progress

Usage:

First of all, create schema in your database.

from telethon import TelegramClient
from postgres import PostgresqlSession


session = PostgresqlSession(
	dbname="database name",
	schema="created schema name",
	username="user",
	password="password",
)

api_id = 12345
api_hash = "hash"

client = TelegramClient(session, api_id, api_hash)

print(client.get_me().stringify())

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages