Skip to main content

Python Telegram bot api.

Project description

PyPi Package Version Supported Python versions Documentation Status Build Status PyPi downloads PyPi status

dgram

A simple, but extensible Python implementation for the Telegram Bot API.

Both synchronous and asynchronous.

Supported Bot API version: 6.3!

Official documentation

Contents

Getting started

This API is tested with Python 3.7-3.11 and Pypy 3. There are two ways to install the library:

  • Installation using pip (a Python package manager):
$ pip install dgram
  • Installation from source (requires git):
$ git clone https://github.com/DEV-Degram/dgram.git
$ cd dgram
$ python setup.py install

or:

$ pip install git+https://github.com/eternnoir/dgram.git
  • Started Code:
import dgram

bot = dgram.dgram("YOUR_TOKEN_HERE")

@bot.message_handler(commands=['start'])
def send_welcome(message):
    bot.reply_to(message, "Welcome, dear!")

bot.polling()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Dgram-1.0.0.tar.gz (179.0 kB view details)

Uploaded Source

File details

Details for the file Dgram-1.0.0.tar.gz.

File metadata

  • Download URL: Dgram-1.0.0.tar.gz
  • Upload date:
  • Size: 179.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.5

File hashes

Hashes for Dgram-1.0.0.tar.gz
Algorithm Hash digest
SHA256 ba9724626f0ddc263e527ba23de02c4356038bfdc46c2db5d1c6df6947f33aea
MD5 b04e7cce261bf95d17d17e617776ae7b
BLAKE2b-256 ef291427757315d4fd521fd0342b412eb6f44723bce9ae4ebcb665f3b2575c01

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page