Skip to main content

Logo

telegram.py

PyPI PyPI - Python Version Documentation Status GitHub - License Telegram Channel

An async API wrapper for Telegram bot API in Python

Installation

Python 3.7+ is required to install and use telegram.py.

Install the latest release from PyPI:

# Mac/Linux
python3 -m pip install telegram.py

# Windows
py -3 -m pip install telegram.py

Or install the development version from GitHub:

# Mac/Linux
python3 -m pip install git+https://github.com/ilovetocode2019/telegram.py

# Windows
py -3 -m pip install git+https://github.com/ilovetocode2019/telegram.py

Quick Example

import logging

import telegrampy
from telegrampy.ext import commands

logging.basicConfig(level=logging.INFO, format="(%(asctime)s) %(levelname)s %(message)s", datefmt="%m/%d/%y - %H:%M:%S %Z")
logger = logging.getLogger("telegrampy")

bot = commands.Bot("token here")

@bot.command()
async def hi(ctx):
    await ctx.send("Hello")

bot.run()

For a line-by-line walkthrough for this example, see the quickstart.

Documentation

Documentation can be found here.

Metadata

Release files for telegram.py 0.3.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 telegram.py 0.3.1
File Size Uploaded
telegram.py-0.3.1.tar.gz 19.6 kB Details

Built distribution (wheel)

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

Total release size: 55.7 kB

Release files / telegram.py-0.3.1.tar.gz

Download URL telegram.py-0.3.1.tar.gz
Size 19.6 kB
Tags Source
SHA-256 checksum
How to use checksums
b5ef34c13bfaa80cf77c9ed6fc24b7fe732928436081de32c79beff849eae5e4
BLAKE2b-256 checksum
How to use checksums
d3ef476dac820a0fcf983a8b381f97c29be287138adf126607cfa8e1ec27da94
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.20.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.4

Release files / telegram.py-0.3.1-py3-none-any.whl

Download URL telegram.py-0.3.1-py3-none-any.whl
Size 36.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5337d575a05c5afaee7d01e3c4d6efa0693d18ed2472f6b443039501d46266f6
BLAKE2b-256 checksum
How to use checksums
f0003d8abde14fe3d07100a2ad215f37dac9131bbd78c7220fa8dac95ac91657
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.20.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.4

Release history Release notifications | RSS feed

This release

0.3.1 This release

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

1 release file

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