Skip to main content

TeleGlance for Python

Async client for public Telegram channels via t.me web previews. No API keys, MTProto credentials, or Telegram account are required.

Install

pip install teleglance

Python 3.10 or newer is required.

Use

import asyncio
from teleglance import TeleGlanceClient


async def main():
    async with TeleGlanceClient() as client:
        channel = await client.get_channel("telegram")
        print(channel.title)

        async for message in client.iter_messages("telegram", limit=10):
            print(message.id, message.text)


asyncio.run(main())

The package also provides typed models, checkpoints, media downloads, parser customization, and a teleglance command-line interface.

JSON capture

Library results can be serialized with dump_json or saved safely with capture_json:

from teleglance import capture_json

capture_json(messages, "messages.json")

The CLI writes JSON to standard output by default. Use --output capture.json to save channel, messages, or search output, or capture watch as NDJSON. Existing files require --overwrite.

Development

uv sync --all-extras --group dev
uv run ruff check .
uv run mypy
uv run pytest --cov

Licensed under MIT. See LICENSE.

Metadata

Release files for teleglance 0.1.1

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

Source distribution (sdist)

Source distribution for teleglance 0.1.1
File Size Uploaded Provenance
teleglance-0.1.1.tar.gz 139.4 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 170.9 kB

Release files / teleglance-0.1.1.tar.gz

Download URL teleglance-0.1.1.tar.gz
Size 139.4 kB
Tags Source
SHA-256 checksum
How to use checksums
8d13a5a7ef5e349ed15711a203d2fcbefda5848a7fdd8184a88a5ce889c5d698
BLAKE2b-256 checksum
How to use checksums
c613d7af09347379733d44900ae6274a6442f6e70bbd0f3bfb33deff3719687d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.1 {"installer":{"name":"uv","version":"0.12.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"NixOS","version":"26.11","id":"zokor","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / teleglance-0.1.1-py3-none-any.whl

Download URL teleglance-0.1.1-py3-none-any.whl
Size 31.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
02ceb7b5affdf3964a71d3b9ec16cd038f6304a2f69e895045d80d681b4eb6e1
BLAKE2b-256 checksum
How to use checksums
b34d3f9a8eb09c88f0199ba6bf8833a4acf6109863bd37d1bfa54e14cb19825c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.1 {"installer":{"name":"uv","version":"0.12.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"NixOS","version":"26.11","id":"zokor","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for teleglance 0.1.1

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.1.1 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