Telegram client library for Python.
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file snakegram-1.0.0.dev8.tar.gz.
File metadata
- Download URL: snakegram-1.0.0.dev8.tar.gz
- Upload date:
- Size: 378.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ae480a2b016555283b8e27c6c4314ed513791c019a7a0c1db8faab9728f07700
|
|
| MD5 |
262065428be08db3b8dada805ab02082
|
|
| BLAKE2b-256 |
e211b938d3f78bfa07c59d85e4491ebe62e94f21d1d5b2032eefeadb352baf69
|
File details
Details for the file snakegram-1.0.0.dev8-cp313-cp313-win_amd64.whl.
File metadata
- Download URL: snakegram-1.0.0.dev8-cp313-cp313-win_amd64.whl
- Upload date:
- Size: 2.0 MB
- Tags: CPython 3.13, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
81a7145c0a9974b8b0da0bcf510930658edcfbdb16627567724fde0a31bdc733
|
|
| MD5 |
c82ee562724a403075488dabe88120eb
|
|
| BLAKE2b-256 |
98287bd5d106b53e6f0fe7b9f419269c134b9c226e1a2149f3419beb2840964d
|
File details
Details for the file snakegram-1.0.0.dev8-cp313-cp313-musllinux_1_2_x86_64.whl.
File metadata
- Download URL: snakegram-1.0.0.dev8-cp313-cp313-musllinux_1_2_x86_64.whl
- Upload date:
- Size: 2.2 MB
- Tags: CPython 3.13, musllinux: musl 1.2+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c3bf1691db2b7a3dc0e2697bd3069d44df1819ce3c4fb362ae7ca012572bda37
|
|
| MD5 |
8fe72a759ff308a12b2c4618187d9412
|
|
| BLAKE2b-256 |
4ba7d2c947f381567e8e0471712a6e5a4024230498be0de30b02135b0a845933
|
File details
Details for the file snakegram-1.0.0.dev8-cp313-cp313-manylinux_2_28_x86_64.whl.
File metadata
- Download URL: snakegram-1.0.0.dev8-cp313-cp313-manylinux_2_28_x86_64.whl
- Upload date:
- Size: 2.2 MB
- Tags: CPython 3.13, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4ac549149d2ba2720c3daccb348a6f9aba2b4eb9fa8f64834811ac410ec7fa35
|
|
| MD5 |
f93a81790a329b5a851c141d2df223b2
|
|
| BLAKE2b-256 |
add3c55d71ce8202ed99eadb642b7adf7c4ef80d584a99479d72efa8870a5452
|
File details
Details for the file snakegram-1.0.0.dev8-cp313-cp313-macosx_11_0_arm64.whl.
File metadata
- Download URL: snakegram-1.0.0.dev8-cp313-cp313-macosx_11_0_arm64.whl
- Upload date:
- Size: 2.1 MB
- Tags: CPython 3.13, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
93a4e8fcd2a37bee59b7328f8a96a3025237d83eede12b4a468bdcbe6ed644fc
|
|
| MD5 |
64807587205d5b22f98bd254b5f79251
|
|
| BLAKE2b-256 |
685a0c0bdd0217b954ffb3f120f213c410b78cd35c42dee276289211a25d80f5
|
File details
Details for the file snakegram-1.0.0.dev8-cp312-cp312-win_amd64.whl.
File metadata
- Download URL: snakegram-1.0.0.dev8-cp312-cp312-win_amd64.whl
- Upload date:
- Size: 2.0 MB
- Tags: CPython 3.12, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f7ff529d0e500dc9e30553f23e2d728c48977a125720c267bf12cc45aaa05b46
|
|
| MD5 |
27d0ab8169103c68b7a8902b6aa5321c
|
|
| BLAKE2b-256 |
3a9f9e8c28303caab4a603a82ac36461b43e7969aafb4041c4ac9bdfd0d9ab2b
|
File details
Details for the file snakegram-1.0.0.dev8-cp312-cp312-musllinux_1_2_x86_64.whl.
File metadata
- Download URL: snakegram-1.0.0.dev8-cp312-cp312-musllinux_1_2_x86_64.whl
- Upload date:
- Size: 2.2 MB
- Tags: CPython 3.12, musllinux: musl 1.2+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
87b240fc3af77efb9ae056f8ece21f790eb00e9a6ebb462cf2930d9973b5bed4
|
|
| MD5 |
895acce2791a96a1ab3e6bd4be8b2e18
|
|
| BLAKE2b-256 |
6555220bf5ea2b34720eb17dd006cbcecaa1dccb136a866178bf7019a68c5068
|
File details
Details for the file snakegram-1.0.0.dev8-cp312-cp312-manylinux_2_28_x86_64.whl.
File metadata
- Download URL: snakegram-1.0.0.dev8-cp312-cp312-manylinux_2_28_x86_64.whl
- Upload date:
- Size: 2.2 MB
- Tags: CPython 3.12, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9aa866c2a70c265512c27ad5923df1d89a483713e7231851fbf711f528a43053
|
|
| MD5 |
44504acede17aa96426934f7fffa49a5
|
|
| BLAKE2b-256 |
2099a4e60e7a44de6cec63f01a27a4e284f118e61dc084a8f8979a64f796e5c7
|
File details
Details for the file snakegram-1.0.0.dev8-cp312-cp312-macosx_11_0_arm64.whl.
File metadata
- Download URL: snakegram-1.0.0.dev8-cp312-cp312-macosx_11_0_arm64.whl
- Upload date:
- Size: 2.1 MB
- Tags: CPython 3.12, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f035aaa82fc6251627666faa2f7d1b2a9b19fc5c364245787f57d7f787e39eae
|
|
| MD5 |
31f6100bc31a980a530e8f3d4728c123
|
|
| BLAKE2b-256 |
0c089972603e4d900c50545b5424ef3feb279848835a8f4b3b5a25e74dafedf9
|
File details
Details for the file snakegram-1.0.0.dev8-cp311-cp311-win_amd64.whl.
File metadata
- Download URL: snakegram-1.0.0.dev8-cp311-cp311-win_amd64.whl
- Upload date:
- Size: 2.0 MB
- Tags: CPython 3.11, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3506e329b2c2b2d320f0cd398638a72fda7f44948b5d2a332a3767b60cbdcdb6
|
|
| MD5 |
3435011ee7d344bc3c9125711c2031c6
|
|
| BLAKE2b-256 |
d0e2b4998384bf939882c2b0fb84ebe31b4964c7c36d587f391ea8cfd3b6e084
|
File details
Details for the file snakegram-1.0.0.dev8-cp311-cp311-musllinux_1_2_x86_64.whl.
File metadata
- Download URL: snakegram-1.0.0.dev8-cp311-cp311-musllinux_1_2_x86_64.whl
- Upload date:
- Size: 2.2 MB
- Tags: CPython 3.11, musllinux: musl 1.2+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
233e204ee346e586783b64411f6d9aa34d81c4ab1752102e3126f2999e3c8ece
|
|
| MD5 |
27df099e5fda68bea4b5260b8a569674
|
|
| BLAKE2b-256 |
49637665438033e941244a63a0dc32f5ea24d22159c00e03790bde7f8872f9db
|
File details
Details for the file snakegram-1.0.0.dev8-cp311-cp311-manylinux_2_28_x86_64.whl.
File metadata
- Download URL: snakegram-1.0.0.dev8-cp311-cp311-manylinux_2_28_x86_64.whl
- Upload date:
- Size: 2.2 MB
- Tags: CPython 3.11, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a453654fc58ada6f388a122cf395190463dd83fac14034641f1104969bfe3b87
|
|
| MD5 |
07cc94bfa45772fa74f36d0af5aa93fb
|
|
| BLAKE2b-256 |
1d6d67c301f760783a780b6882a092a33fd925d9fc374b28c05b31e8e84e4a4c
|
File details
Details for the file snakegram-1.0.0.dev8-cp311-cp311-macosx_11_0_arm64.whl.
File metadata
- Download URL: snakegram-1.0.0.dev8-cp311-cp311-macosx_11_0_arm64.whl
- Upload date:
- Size: 2.1 MB
- Tags: CPython 3.11, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
312bacfddb57ca227bb70e55d6e9448f92c713bf23437dd55c71a1f792695693
|
|
| MD5 |
c62201a250ad9b41596ee2c2c258eab6
|
|
| BLAKE2b-256 |
6d3523af106f7f2dacf9c23da0f0e4632547ef37ab1e6ab231a4881d2c1d84e6
|
File details
Details for the file snakegram-1.0.0.dev8-cp310-cp310-win_amd64.whl.
File metadata
- Download URL: snakegram-1.0.0.dev8-cp310-cp310-win_amd64.whl
- Upload date:
- Size: 2.0 MB
- Tags: CPython 3.10, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
141998ed511fd78c45d794196a6f07804da1432e8fdeb2c954b00406d11b1e8d
|
|
| MD5 |
44cd1b41b0f67373abf4f13e357b0df9
|
|
| BLAKE2b-256 |
caef9a3530680408571cc334f3d65ab2b0e49b1ddafa1d829b6d5266311936f2
|
File details
Details for the file snakegram-1.0.0.dev8-cp310-cp310-musllinux_1_2_x86_64.whl.
File metadata
- Download URL: snakegram-1.0.0.dev8-cp310-cp310-musllinux_1_2_x86_64.whl
- Upload date:
- Size: 2.2 MB
- Tags: CPython 3.10, musllinux: musl 1.2+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f850934c217baa8ac127629456fd7f83dc43ed499911b6f44ac8ad30c7cea527
|
|
| MD5 |
db61f4a996994cddf4664448645e5e1a
|
|
| BLAKE2b-256 |
408f0e584fef647a2b34435ad4a2458b19d01bfc34be73b36ebcaedd38f10c14
|
File details
Details for the file snakegram-1.0.0.dev8-cp310-cp310-manylinux_2_28_x86_64.whl.
File metadata
- Download URL: snakegram-1.0.0.dev8-cp310-cp310-manylinux_2_28_x86_64.whl
- Upload date:
- Size: 2.2 MB
- Tags: CPython 3.10, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
262f1d0e703cc5948ded1a3b55b477d90553f89a308f1e98261c949ac20ad0ac
|
|
| MD5 |
ca4f1154c1342044de35ef375183c394
|
|
| BLAKE2b-256 |
a67309d8fb5b42cf1b48069af3987ecf13f74de1e1ee68d9790a767b713bf408
|
File details
Details for the file snakegram-1.0.0.dev8-cp310-cp310-macosx_11_0_arm64.whl.
File metadata
- Download URL: snakegram-1.0.0.dev8-cp310-cp310-macosx_11_0_arm64.whl
- Upload date:
- Size: 2.1 MB
- Tags: CPython 3.10, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
406b8be33e4151aef3ae813e156123deadb7d3297b0fba9de0784582a385229b
|
|
| MD5 |
7ac017f93c0a4e5d99ada7d965e2d588
|
|
| BLAKE2b-256 |
fcd2ce9b0b0f58795c51bc097aa82678c38581fedaeb7562b5485ed82ff192bf
|
File details
Details for the file snakegram-1.0.0.dev8-cp39-cp39-win_amd64.whl.
File metadata
- Download URL: snakegram-1.0.0.dev8-cp39-cp39-win_amd64.whl
- Upload date:
- Size: 2.0 MB
- Tags: CPython 3.9, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
990f82647da96a62b4090869e979c0960c816e4e2e1930d6c2d5a7371dd9a4fe
|
|
| MD5 |
d13150db99f6db5b0603f8f0dbef431d
|
|
| BLAKE2b-256 |
431f3e5f8ecfc3ee090c096dcfcf5eccfe7cf422442e1511e3deca99878deb5d
|
File details
Details for the file snakegram-1.0.0.dev8-cp39-cp39-musllinux_1_2_x86_64.whl.
File metadata
- Download URL: snakegram-1.0.0.dev8-cp39-cp39-musllinux_1_2_x86_64.whl
- Upload date:
- Size: 2.2 MB
- Tags: CPython 3.9, musllinux: musl 1.2+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ac141276d4d4878149ddbbeba62d3b5d0dccb7d7c3b5c7f177e60c39ab14b042
|
|
| MD5 |
e40146134d908087dd54f8c9749d5ee2
|
|
| BLAKE2b-256 |
0536ff276ac23cc7a0353215d5f33d40c112bf3938ac93bb0398c7788ade748e
|
File details
Details for the file snakegram-1.0.0.dev8-cp39-cp39-manylinux_2_28_x86_64.whl.
File metadata
- Download URL: snakegram-1.0.0.dev8-cp39-cp39-manylinux_2_28_x86_64.whl
- Upload date:
- Size: 2.2 MB
- Tags: CPython 3.9, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
03bb67fdf1c2ded7f440ab12bbb263ff92bb3a8974fdf4f9a782e1f2f538be34
|
|
| MD5 |
cee6f6d546e735c9becbbadcd18b398f
|
|
| BLAKE2b-256 |
b73d842aa87eae50da6d3ba721def9abd32a5c5761540b34cd186ed738e64a96
|
File details
Details for the file snakegram-1.0.0.dev8-cp39-cp39-macosx_11_0_arm64.whl.
File metadata
- Download URL: snakegram-1.0.0.dev8-cp39-cp39-macosx_11_0_arm64.whl
- Upload date:
- Size: 2.1 MB
- Tags: CPython 3.9, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
259cadc47dc2e823216b2349ffc060feca7be9788e75742c6dabd33f845b3110
|
|
| MD5 |
a3f7ec6779827393d4d9fa22bbe86b38
|
|
| BLAKE2b-256 |
de129f567bb0248c93f59e13ebe7115873dc5eb2485a939bacc8ef1d432b02ec
|
File details
Details for the file snakegram-1.0.0.dev8-cp38-cp38-win_amd64.whl.
File metadata
- Download URL: snakegram-1.0.0.dev8-cp38-cp38-win_amd64.whl
- Upload date:
- Size: 2.0 MB
- Tags: CPython 3.8, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
14fb2b8334e9808995eba3fa22ec2785eb0ad71e6b1fe98b496b385173e649c9
|
|
| MD5 |
733aa9e108b1c8151989eac7cfa41efb
|
|
| BLAKE2b-256 |
548cc9ad37c33b0dc6dbc5b3c21e8e06beb322520ca6b628955d89315e1f98ab
|
File details
Details for the file snakegram-1.0.0.dev8-cp38-cp38-musllinux_1_2_x86_64.whl.
File metadata
- Download URL: snakegram-1.0.0.dev8-cp38-cp38-musllinux_1_2_x86_64.whl
- Upload date:
- Size: 2.2 MB
- Tags: CPython 3.8, musllinux: musl 1.2+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
96925adf55491598c096aa8a46b1bbca662b2a563a9ecbc52fb39b983a60123a
|
|
| MD5 |
e0c37c6f088d78c6adc7cdc00f617eb6
|
|
| BLAKE2b-256 |
97a54e1b95c1ea6c72b5a3620d3af275175178c479217a5b8c65c193ffcd2904
|
File details
Details for the file snakegram-1.0.0.dev8-cp38-cp38-manylinux_2_28_x86_64.whl.
File metadata
- Download URL: snakegram-1.0.0.dev8-cp38-cp38-manylinux_2_28_x86_64.whl
- Upload date:
- Size: 2.2 MB
- Tags: CPython 3.8, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
16308e3393527abfd1bfd607ce164feda5d520678e4cc5d989d30a126a0988eb
|
|
| MD5 |
d16e5d2b65021289870c7805721ca353
|
|
| BLAKE2b-256 |
6559be7218babbc369c2eb53619327516f5aded33e940c1dda5678155c2e0dcb
|
File details
Details for the file snakegram-1.0.0.dev8-cp38-cp38-macosx_11_0_arm64.whl.
File metadata
- Download URL: snakegram-1.0.0.dev8-cp38-cp38-macosx_11_0_arm64.whl
- Upload date:
- Size: 2.1 MB
- Tags: CPython 3.8, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6dc1b83e82eef47e743985096be9942edd9307ba9a1d30350641bbe012a74c2b
|
|
| MD5 |
fe040f496107fb53fe503b5de44abe5f
|
|
| BLAKE2b-256 |
4176a754a277b99a7cae160957052591b4b85ed2c374620163bf0cd8de6f9fb1
|