Skip to main content

devhubsesion

Telegram account manager with session strings — no Telethon code needed.

PyPI Downloads Python License

Telegram GitHub PyPI


Install

pip install devhubsesion


Quick start

from devhubsesion import DevHubSession

with DevHubSession( session_string="your-session-string", api_id=123456, api_hash="your-api-hash", ) as tg: print("logged in as:", tg.me.first_name, tg.me.id)

for c in tg.list_private_chats()[:5]:
    print(c["id"], c["name"])

Methods

Chats:

  • list_private_chats
  • list_groups_channels
  • dump_history
  • last_message

Backup:

  • backup_voices
  • backup_photos
  • backup_full

Monitor:

  • watch

Contacts:

  • list_contacts
  • extract_numbers

Account:

  • list_active_sessions
  • change_bio
  • change_name

Send:

  • send_message

Security

Never share your session string — it is a full account credential.

  • api_id and api_hash are passed by you, never hardcoded.
  • The library stores nothing on any server.

Requirements

  • Python 3.9+
  • Telethon 1.34+

PyPI GitHub Issues Telegram


Developer

𝐀𝐬𝐭𝐫𝐚𝐞𝐚

Telegram


Licensed under Apache-2.0

Star the project on GitHub if it helps you!

Metadata

Release files for devhubsesion 0.2.0

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

Source distribution (sdist)

Source distribution for devhubsesion 0.2.0
File Size Uploaded Provenance Actions
devhubsesion-0.2.0.tar.gz 11.0 kB Without provenance Details for devhubsesion-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for devhubsesion 0.2.0
File Interpreter ABI Platform Actions
devhubsesion-0.2.0-py3-none-any.whl Python 3 none any Details for devhubsesion-0.2.0-py3-none-any.whl

Total release size: 24.4 kB

Release files / devhubsesion-0.2.0.tar.gz

Download URL devhubsesion-0.2.0.tar.gz
Size 11.0 kB
Tags Source
SHA-256 checksum
How to use checksums
c35aeb5d70326c84a521df241f7c4082af020f6b9c350b28ac713313e3cdac4f
BLAKE2b-256 checksum
How to use checksums
3e60017f5382f59d7baac2d1a5dc88e0d69a2e6640fc56701cf40c9c29d778dc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.31.0

Release files / devhubsesion-0.2.0-py3-none-any.whl

Download URL devhubsesion-0.2.0-py3-none-any.whl
Size 13.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4331d93024891c3a427eae6248b1c933a618e5b00c14f9230e9f8f1e505d3904
BLAKE2b-256 checksum
How to use checksums
b2a309716dfb276f925d5f4200dfd68c4b9a4da5cd55be9a13b6e7b4507657cd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.31.0

Security for devhubsesion 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files No provenance

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