telethon-up


Nametelethon-up JSON
Version 1.1.2 PyPI version JSON
download
home_pagehttps://github.com/amirwolf5122/Telethon_up
SummaryFull-featured Telegram client library for Python 3
upload_time2025-09-03 16:06:05
maintainerNone
docs_urlNone
authorAmir:3
requires_python>=3.5
licenseMIT
keywords telegram api chat client library messaging mtproto
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Telethon  
> ⭐️ Thanks **everyone** who has starred the project, it means a lot!

**Telethon** is an [asyncio](https://docs.python.org/3/library/asyncio.html) **Python 3**
[MTProto](https://core.telegram.org/mtproto) library to interact with [Telegram](https://telegram.org/)'s API
as a user or through a bot account (bot API alternative).

Important

If you have code using Telethon before its 1.0 version, you must
read [Compatibility and Convenience](https://docs.telethon.dev/en/stable/misc/compatibility-and-convenience.html) to learn how to migrate.
As with any third-party library for Telegram, be careful not to
break [Telegram's ToS](https://core.telegram.org/api/terms) or [Telegram can ban the account](https://docs.telethon.dev/en/stable/quick-references/faq.html#my-account-was-deleted-limited-when-using-the-library)
# What is this?
Telegram is a popular messaging application. This library is meant to make it easy for you to write Python programs that can interact with Telegram. Think of it as a wrapper that has already done the heavy job for you, so you can focus on developing an application.
# What telethon-up does:3
⭐️The purpose of telethon-up is that it automatically updates the TL layer (api.tl) to the latest version of Telegram⭐️:3
# Installing

```bash
pip3 install telethon-up
```


# Creating a client

```python
import telethon_up
# telethon_up.chack()
# Automatically update the Telethon API layer (api.tl).
from telethon import TelegramClient, events, sync
# These example values won't work. You must get your own api_id and
# api_hash from https://my.telegram.org, under API Development.
api_id = 12345
api_hash = '0123456789abcdef0123456789abcdef'

client = TelegramClient('session_name', api_id, api_hash)
client.start()
```
# Doing stuff

```python
print(client.get_me().stringify())

client.send_message('username', 'Hello! Talking to you from Telethon')
client.send_file('username', '/home/myself/Pictures/holidays.jpg')

client.download_profile_photo('me')
messages = client.get_messages('username')
messages[0].download_media()

@client.on(events.NewMessage(pattern='(?i)hi|hello'))
async def handler(event):
  await event.respond('Hey!')
```
# Next steps
Do you like how Telethon looks? Check out [Read The Docs](https://docs.telethon.dev/) for a more in-depth explanation, with examples, troubleshooting issues, and more useful information.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/amirwolf5122/Telethon_up",
    "name": "telethon-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": "# Telethon  \r\n> \u2b50\ufe0f Thanks **everyone** who has starred the project, it means a lot!\r\n\r\n**Telethon** is an [asyncio](https://docs.python.org/3/library/asyncio.html) **Python 3**\r\n[MTProto](https://core.telegram.org/mtproto) library to interact with [Telegram](https://telegram.org/)'s API\r\nas a user or through a bot account (bot API alternative).\r\n\r\nImportant\r\n\r\nIf you have code using Telethon before its 1.0 version, you must\r\nread [Compatibility and Convenience](https://docs.telethon.dev/en/stable/misc/compatibility-and-convenience.html) to learn how to migrate.\r\nAs with any third-party library for Telegram, be careful not to\r\nbreak [Telegram's ToS](https://core.telegram.org/api/terms) or [Telegram can ban the account](https://docs.telethon.dev/en/stable/quick-references/faq.html#my-account-was-deleted-limited-when-using-the-library)\r\n# What is this?\r\nTelegram is a popular messaging application. This library is meant to make it easy for you to write Python programs that can interact with Telegram. Think of it as a wrapper that has already done the heavy job for you, so you can focus on developing an application.\r\n# What telethon-up does:3\r\n\u2b50\ufe0fThe purpose of telethon-up is that it automatically updates the TL layer (api.tl) to the latest version of Telegram\u2b50\ufe0f:3\r\n# Installing\r\n\r\n```bash\r\npip3 install telethon-up\r\n```\r\n\r\n\r\n# Creating a client\r\n\r\n```python\r\nimport telethon_up\r\n# telethon_up.chack()\r\n# Automatically update the Telethon API layer (api.tl).\r\nfrom telethon import TelegramClient, events, sync\r\n# These example values won't work. You must get your own api_id and\r\n# api_hash from https://my.telegram.org, under API Development.\r\napi_id = 12345\r\napi_hash = '0123456789abcdef0123456789abcdef'\r\n\r\nclient = TelegramClient('session_name', api_id, api_hash)\r\nclient.start()\r\n```\r\n# Doing stuff\r\n\r\n```python\r\nprint(client.get_me().stringify())\r\n\r\nclient.send_message('username', 'Hello! Talking to you from Telethon')\r\nclient.send_file('username', '/home/myself/Pictures/holidays.jpg')\r\n\r\nclient.download_profile_photo('me')\r\nmessages = client.get_messages('username')\r\nmessages[0].download_media()\r\n\r\n@client.on(events.NewMessage(pattern='(?i)hi|hello'))\r\nasync def handler(event):\r\n  await event.respond('Hey!')\r\n```\r\n# Next steps\r\nDo you like how Telethon looks? Check out [Read The Docs](https://docs.telethon.dev/) for a more in-depth explanation, with examples, troubleshooting issues, and more useful information.\r\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Full-featured Telegram client library for Python 3",
    "version": "1.1.2",
    "project_urls": {
        "Homepage": "https://github.com/amirwolf5122/Telethon_up"
    },
    "split_keywords": [
        "telegram",
        "api",
        "chat",
        "client",
        "library",
        "messaging",
        "mtproto"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "fdffa777a9f22677445452e49f2586b2e6b1899fa740ad9d42894ed1bed8b4b4",
                "md5": "2e48fc93fc23bc135db678659c6edd3c",
                "sha256": "63dc630352c532940f484ebb23fe287d2ac5a9fdbc1475acbaffe8d212ec37d2"
            },
            "downloads": -1,
            "filename": "telethon_up-1.1.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "2e48fc93fc23bc135db678659c6edd3c",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.5",
            "size": 4329,
            "upload_time": "2025-09-03T16:06:05",
            "upload_time_iso_8601": "2025-09-03T16:06:05.750261Z",
            "url": "https://files.pythonhosted.org/packages/fd/ff/a777a9f22677445452e49f2586b2e6b1899fa740ad9d42894ed1bed8b4b4/telethon_up-1.1.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-09-03 16:06:05",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "amirwolf5122",
    "github_project": "Telethon_up",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "telethon-up"
}
        
Elapsed time: 0.54705s