# 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.
## What snakegram-up does:3
⭐️The purpose of snakegram-up is that it automatically updates the TL layer (api.tl) to the latest version of Telegram⭐️:3
## Installation
**Install the latest development version from GitHub:**
```bash
pip install -U git+https://github.com/amirwolf5122/snakegram_up.git@dev
```
**Install the last PyPI release (may not include recent changes):**
```bash
pip install snakegram-up
```
## Quick Start Example
```python
import snakegram_up
# snakegram_up.chack()
# Automatically update the Telethon API layer (api.tl).
from snakegram import filters, Telegram
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:
[Snakegram Chat](https://t.me/SnakegramChat)
## License
Snakegram is licensed under the [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0). See the [LICENSE](LICENSE) file for details.
Raw data
{
"_id": null,
"home_page": "https://github.com/amirwolf5122/snakegram_up",
"name": "snakegram-up",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.5",
"maintainer_email": null,
"keywords": "telegram api chat client library messaging mtproto",
"author": "Amir:3",
"author_email": "amirwolf512@gmail.com",
"download_url": null,
"platform": null,
"description": "# Snakegram \r\n\u2b50 Thank you to everyone who has supported Snakegram! Your stars help the project grow and improve.\r\n\r\nSnakegram is a Python library for interacting with Telegram. It provides a simple, flexible interface to create bots, clients, and automated workflows with Python.\r\n\r\n## Why Snakegram?\r\n\r\nWorking 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.\r\n\r\n\r\n## Development Status\r\n\r\nThis library is actively being developed. New features are added frequently. \r\n\r\n## What snakegram-up does:3\r\n\u2b50\ufe0fThe purpose of snakegram-up is that it automatically updates the TL layer (api.tl) to the latest version of Telegram\u2b50\ufe0f:3\r\n\r\n## Installation\r\n\r\n**Install the latest development version from GitHub:** \r\n```bash\r\npip install -U git+https://github.com/amirwolf5122/snakegram_up.git@dev\r\n```\r\n\r\n**Install the last PyPI release (may not include recent changes):**\r\n```bash\r\npip install snakegram-up\r\n```\r\n\r\n## Quick Start Example\r\n```python\r\nimport snakegram_up\r\n# snakegram_up.chack()\r\n# Automatically update the Telethon API layer (api.tl).\r\nfrom snakegram import filters, Telegram\r\n\r\nclient = Telegram(\r\n 'session',\r\n api_id=1234567,\r\n api_hash='0123456789abcdef0123456789abcdef'\r\n)\r\n\r\n# Handle incoming \"ping\" messages\r\n@client.on_update(\r\n filters.new_message\r\n & ~ (\r\n filters.proxy.message.out\r\n |\r\n (filters.proxy.message % types.MessageService)\r\n )\r\n & filters.proxy.message.message.lower() == 'ping'\r\n)\r\nasync def ping_handler(update):\r\n await client.send_message(update.message.peer_id, '*PONG*')\r\n\r\n# start the client and keep it running\r\nclient.start()\r\nclient.wait_until_disconnected()\r\n\r\n```\r\n---\r\n\r\n## Support & Community\r\nHave questions or ideas? Join the discussion and get help in our Telegram group:\r\n\r\n[Snakegram Chat](https://t.me/SnakegramChat)\r\n\r\n## License\r\nSnakegram is licensed under the [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0). See the [LICENSE](LICENSE) file for details.\r\n\r\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Full-featured Telegram client library for Python 3",
"version": "1.1.1",
"project_urls": {
"Homepage": "https://github.com/amirwolf5122/snakegram_up"
},
"split_keywords": [
"telegram",
"api",
"chat",
"client",
"library",
"messaging",
"mtproto"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "c0ad598316928f6573c169ec730a6944165d9aeaeafcaf2669846bdf7b46d7e5",
"md5": "5c8b6a72b24e2580b3700b31396166fd",
"sha256": "f0d82a29d3bdade245f095e717abae9ba535cd5668708d3dea9bf8341937c1d9"
},
"downloads": -1,
"filename": "snakegram_up-1.1.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "5c8b6a72b24e2580b3700b31396166fd",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.5",
"size": 4120,
"upload_time": "2025-09-03T16:17:31",
"upload_time_iso_8601": "2025-09-03T16:17:31.517148Z",
"url": "https://files.pythonhosted.org/packages/c0/ad/598316928f6573c169ec730a6944165d9aeaeafcaf2669846bdf7b46d7e5/snakegram_up-1.1.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-09-03 16:17:31",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "amirwolf5122",
"github_project": "snakegram_up",
"github_not_found": true,
"lcname": "snakegram-up"
}