This release is a pre-release and may not be stable for production use.
Snakegram
⭐ Thank you to everyone who has supported Snakegram! Your stars help the project grow and improve.
Snakegram is a Python library for interacting with Telegram. It provides a simple, flexible interface to create bots, clients, and automated workflows with Python.
Why Snakegram?
Working with MTproto can be complex. Snakegram handles all details for you, letting you focus on creating your app without worrying about the low-level work.
Development Status
This library is actively being developed. New features are added frequently.
Installation
Install the latest development version from GitHub:
pip install -U git+https://github.com/mivmi/snakegram.git@dev
Install the last PyPI release (may not include recent changes):
pip install snakegram
Quick Start Example
from snakegram import filters, Telegram
from snakegram.tl import types
client = Telegram(
'session',
api_id=1234567,
api_hash='0123456789abcdef0123456789abcdef'
)
# Handle incoming "ping" messages
@client.on_update(
filters.new_message
& ~ (
filters.proxy.message.out
|
(filters.proxy.message % types.MessageService)
)
& filters.proxy.message.message.lower() == 'ping'
)
async def ping_handler(update):
await client.send_message(update.message.peer_id, '*PONG*')
# start the client and keep it running
client.start()
client.wait_until_disconnected()
Support & Community
Have questions or ideas? Join the discussion and get help in our Telegram group:
License
Snakegram is licensed under the Apache License 2.0. See the LICENSE file for details.
Metadata
Release files for snakegram 1.0.0.dev8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| snakegram-1.0.0.dev8.tar.gz | 378.7 kB | Details |
Built distributions (wheels)
Total release size: 51.2 MB
Release files / snakegram-1.0.0.dev8.tar.gz
| Download URL | snakegram-1.0.0.dev8.tar.gz |
|---|---|
| Size | 378.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ae480a2b016555283b8e27c6c4314ed513791c019a7a0c1db8faab9728f07700
|
|
BLAKE2b-256 checksum How to use checksums |
e211b938d3f78bfa07c59d85e4491ebe62e94f21d1d5b2032eefeadb352baf69
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / snakegram-1.0.0.dev8-cp313-cp313-win_amd64.whl
| Download URL | snakegram-1.0.0.dev8-cp313-cp313-win_amd64.whl |
|---|---|
| Size | 2.0 MB |
| Tags | CPython 3.13 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
81a7145c0a9974b8b0da0bcf510930658edcfbdb16627567724fde0a31bdc733
|
|
BLAKE2b-256 checksum How to use checksums |
98287bd5d106b53e6f0fe7b9f419269c134b9c226e1a2149f3419beb2840964d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / snakegram-1.0.0.dev8-cp313-cp313-musllinux_1_2_x86_64.whl
| Download URL | snakegram-1.0.0.dev8-cp313-cp313-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 2.2 MB |
| Tags | CPython 3.13 Linux musl 1.2+ x86-64 |
|
SHA-256 checksum How to use checksums |
c3bf1691db2b7a3dc0e2697bd3069d44df1819ce3c4fb362ae7ca012572bda37
|
|
BLAKE2b-256 checksum How to use checksums |
4ba7d2c947f381567e8e0471712a6e5a4024230498be0de30b02135b0a845933
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / snakegram-1.0.0.dev8-cp313-cp313-manylinux_2_28_x86_64.whl
| Download URL | snakegram-1.0.0.dev8-cp313-cp313-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 2.2 MB |
| Tags | CPython 3.13 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
4ac549149d2ba2720c3daccb348a6f9aba2b4eb9fa8f64834811ac410ec7fa35
|
|
BLAKE2b-256 checksum How to use checksums |
add3c55d71ce8202ed99eadb642b7adf7c4ef80d584a99479d72efa8870a5452
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / snakegram-1.0.0.dev8-cp313-cp313-macosx_11_0_arm64.whl
| Download URL | snakegram-1.0.0.dev8-cp313-cp313-macosx_11_0_arm64.whl |
|---|---|
| Size | 2.1 MB |
| Tags | CPython 3.13 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
93a4e8fcd2a37bee59b7328f8a96a3025237d83eede12b4a468bdcbe6ed644fc
|
|
BLAKE2b-256 checksum How to use checksums |
685a0c0bdd0217b954ffb3f120f213c410b78cd35c42dee276289211a25d80f5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / snakegram-1.0.0.dev8-cp312-cp312-win_amd64.whl
| Download URL | snakegram-1.0.0.dev8-cp312-cp312-win_amd64.whl |
|---|---|
| Size | 2.0 MB |
| Tags | CPython 3.12 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
f7ff529d0e500dc9e30553f23e2d728c48977a125720c267bf12cc45aaa05b46
|
|
BLAKE2b-256 checksum How to use checksums |
3a9f9e8c28303caab4a603a82ac36461b43e7969aafb4041c4ac9bdfd0d9ab2b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / snakegram-1.0.0.dev8-cp312-cp312-musllinux_1_2_x86_64.whl
| Download URL | snakegram-1.0.0.dev8-cp312-cp312-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 2.2 MB |
| Tags | CPython 3.12 Linux musl 1.2+ x86-64 |
|
SHA-256 checksum How to use checksums |
87b240fc3af77efb9ae056f8ece21f790eb00e9a6ebb462cf2930d9973b5bed4
|
|
BLAKE2b-256 checksum How to use checksums |
6555220bf5ea2b34720eb17dd006cbcecaa1dccb136a866178bf7019a68c5068
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / snakegram-1.0.0.dev8-cp312-cp312-manylinux_2_28_x86_64.whl
| Download URL | snakegram-1.0.0.dev8-cp312-cp312-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 2.2 MB |
| Tags | CPython 3.12 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
9aa866c2a70c265512c27ad5923df1d89a483713e7231851fbf711f528a43053
|
|
BLAKE2b-256 checksum How to use checksums |
2099a4e60e7a44de6cec63f01a27a4e284f118e61dc084a8f8979a64f796e5c7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / snakegram-1.0.0.dev8-cp312-cp312-macosx_11_0_arm64.whl
| Download URL | snakegram-1.0.0.dev8-cp312-cp312-macosx_11_0_arm64.whl |
|---|---|
| Size | 2.1 MB |
| Tags | CPython 3.12 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
f035aaa82fc6251627666faa2f7d1b2a9b19fc5c364245787f57d7f787e39eae
|
|
BLAKE2b-256 checksum How to use checksums |
0c089972603e4d900c50545b5424ef3feb279848835a8f4b3b5a25e74dafedf9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / snakegram-1.0.0.dev8-cp311-cp311-win_amd64.whl
| Download URL | snakegram-1.0.0.dev8-cp311-cp311-win_amd64.whl |
|---|---|
| Size | 2.0 MB |
| Tags | CPython 3.11 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
3506e329b2c2b2d320f0cd398638a72fda7f44948b5d2a332a3767b60cbdcdb6
|
|
BLAKE2b-256 checksum How to use checksums |
d0e2b4998384bf939882c2b0fb84ebe31b4964c7c36d587f391ea8cfd3b6e084
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / snakegram-1.0.0.dev8-cp311-cp311-musllinux_1_2_x86_64.whl
| Download URL | snakegram-1.0.0.dev8-cp311-cp311-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 2.2 MB |
| Tags | CPython 3.11 Linux musl 1.2+ x86-64 |
|
SHA-256 checksum How to use checksums |
233e204ee346e586783b64411f6d9aa34d81c4ab1752102e3126f2999e3c8ece
|
|
BLAKE2b-256 checksum How to use checksums |
49637665438033e941244a63a0dc32f5ea24d22159c00e03790bde7f8872f9db
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / snakegram-1.0.0.dev8-cp311-cp311-manylinux_2_28_x86_64.whl
| Download URL | snakegram-1.0.0.dev8-cp311-cp311-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 2.2 MB |
| Tags | CPython 3.11 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
a453654fc58ada6f388a122cf395190463dd83fac14034641f1104969bfe3b87
|
|
BLAKE2b-256 checksum How to use checksums |
1d6d67c301f760783a780b6882a092a33fd925d9fc374b28c05b31e8e84e4a4c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / snakegram-1.0.0.dev8-cp311-cp311-macosx_11_0_arm64.whl
| Download URL | snakegram-1.0.0.dev8-cp311-cp311-macosx_11_0_arm64.whl |
|---|---|
| Size | 2.1 MB |
| Tags | CPython 3.11 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
312bacfddb57ca227bb70e55d6e9448f92c713bf23437dd55c71a1f792695693
|
|
BLAKE2b-256 checksum How to use checksums |
6d3523af106f7f2dacf9c23da0f0e4632547ef37ab1e6ab231a4881d2c1d84e6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / snakegram-1.0.0.dev8-cp310-cp310-win_amd64.whl
| Download URL | snakegram-1.0.0.dev8-cp310-cp310-win_amd64.whl |
|---|---|
| Size | 2.0 MB |
| Tags | CPython 3.10 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
141998ed511fd78c45d794196a6f07804da1432e8fdeb2c954b00406d11b1e8d
|
|
BLAKE2b-256 checksum How to use checksums |
caef9a3530680408571cc334f3d65ab2b0e49b1ddafa1d829b6d5266311936f2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / snakegram-1.0.0.dev8-cp310-cp310-musllinux_1_2_x86_64.whl
| Download URL | snakegram-1.0.0.dev8-cp310-cp310-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 2.2 MB |
| Tags | CPython 3.10 Linux musl 1.2+ x86-64 |
|
SHA-256 checksum How to use checksums |
f850934c217baa8ac127629456fd7f83dc43ed499911b6f44ac8ad30c7cea527
|
|
BLAKE2b-256 checksum How to use checksums |
408f0e584fef647a2b34435ad4a2458b19d01bfc34be73b36ebcaedd38f10c14
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / snakegram-1.0.0.dev8-cp310-cp310-manylinux_2_28_x86_64.whl
| Download URL | snakegram-1.0.0.dev8-cp310-cp310-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 2.2 MB |
| Tags | CPython 3.10 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
262f1d0e703cc5948ded1a3b55b477d90553f89a308f1e98261c949ac20ad0ac
|
|
BLAKE2b-256 checksum How to use checksums |
a67309d8fb5b42cf1b48069af3987ecf13f74de1e1ee68d9790a767b713bf408
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / snakegram-1.0.0.dev8-cp310-cp310-macosx_11_0_arm64.whl
| Download URL | snakegram-1.0.0.dev8-cp310-cp310-macosx_11_0_arm64.whl |
|---|---|
| Size | 2.1 MB |
| Tags | CPython 3.10 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
406b8be33e4151aef3ae813e156123deadb7d3297b0fba9de0784582a385229b
|
|
BLAKE2b-256 checksum How to use checksums |
fcd2ce9b0b0f58795c51bc097aa82678c38581fedaeb7562b5485ed82ff192bf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / snakegram-1.0.0.dev8-cp39-cp39-win_amd64.whl
| Download URL | snakegram-1.0.0.dev8-cp39-cp39-win_amd64.whl |
|---|---|
| Size | 2.0 MB |
| Tags | CPython 3.9 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
990f82647da96a62b4090869e979c0960c816e4e2e1930d6c2d5a7371dd9a4fe
|
|
BLAKE2b-256 checksum How to use checksums |
431f3e5f8ecfc3ee090c096dcfcf5eccfe7cf422442e1511e3deca99878deb5d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / snakegram-1.0.0.dev8-cp39-cp39-musllinux_1_2_x86_64.whl
| Download URL | snakegram-1.0.0.dev8-cp39-cp39-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 2.2 MB |
| Tags | CPython 3.9 Linux musl 1.2+ x86-64 |
|
SHA-256 checksum How to use checksums |
ac141276d4d4878149ddbbeba62d3b5d0dccb7d7c3b5c7f177e60c39ab14b042
|
|
BLAKE2b-256 checksum How to use checksums |
0536ff276ac23cc7a0353215d5f33d40c112bf3938ac93bb0398c7788ade748e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / snakegram-1.0.0.dev8-cp39-cp39-manylinux_2_28_x86_64.whl
| Download URL | snakegram-1.0.0.dev8-cp39-cp39-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 2.2 MB |
| Tags | CPython 3.9 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
03bb67fdf1c2ded7f440ab12bbb263ff92bb3a8974fdf4f9a782e1f2f538be34
|
|
BLAKE2b-256 checksum How to use checksums |
b73d842aa87eae50da6d3ba721def9abd32a5c5761540b34cd186ed738e64a96
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / snakegram-1.0.0.dev8-cp39-cp39-macosx_11_0_arm64.whl
| Download URL | snakegram-1.0.0.dev8-cp39-cp39-macosx_11_0_arm64.whl |
|---|---|
| Size | 2.1 MB |
| Tags | CPython 3.9 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
259cadc47dc2e823216b2349ffc060feca7be9788e75742c6dabd33f845b3110
|
|
BLAKE2b-256 checksum How to use checksums |
de129f567bb0248c93f59e13ebe7115873dc5eb2485a939bacc8ef1d432b02ec
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / snakegram-1.0.0.dev8-cp38-cp38-win_amd64.whl
| Download URL | snakegram-1.0.0.dev8-cp38-cp38-win_amd64.whl |
|---|---|
| Size | 2.0 MB |
| Tags | CPython 3.8 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
14fb2b8334e9808995eba3fa22ec2785eb0ad71e6b1fe98b496b385173e649c9
|
|
BLAKE2b-256 checksum How to use checksums |
548cc9ad37c33b0dc6dbc5b3c21e8e06beb322520ca6b628955d89315e1f98ab
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / snakegram-1.0.0.dev8-cp38-cp38-musllinux_1_2_x86_64.whl
| Download URL | snakegram-1.0.0.dev8-cp38-cp38-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 2.2 MB |
| Tags | CPython 3.8 Linux musl 1.2+ x86-64 |
|
SHA-256 checksum How to use checksums |
96925adf55491598c096aa8a46b1bbca662b2a563a9ecbc52fb39b983a60123a
|
|
BLAKE2b-256 checksum How to use checksums |
97a54e1b95c1ea6c72b5a3620d3af275175178c479217a5b8c65c193ffcd2904
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / snakegram-1.0.0.dev8-cp38-cp38-manylinux_2_28_x86_64.whl
| Download URL | snakegram-1.0.0.dev8-cp38-cp38-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 2.2 MB |
| Tags | CPython 3.8 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
16308e3393527abfd1bfd607ce164feda5d520678e4cc5d989d30a126a0988eb
|
|
BLAKE2b-256 checksum How to use checksums |
6559be7218babbc369c2eb53619327516f5aded33e940c1dda5678155c2e0dcb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / snakegram-1.0.0.dev8-cp38-cp38-macosx_11_0_arm64.whl
| Download URL | snakegram-1.0.0.dev8-cp38-cp38-macosx_11_0_arm64.whl |
|---|---|
| Size | 2.1 MB |
| Tags | CPython 3.8 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
6dc1b83e82eef47e743985096be9942edd9307ba9a1d30350641bbe012a74c2b
|
|
BLAKE2b-256 checksum How to use checksums |
4176a754a277b99a7cae160957052591b4b85ed2c374620163bf0cd8de6f9fb1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|