Socket
Socket
Sign inDemoInstall

Dgram

Package Overview
Dependencies
0
Maintainers
1
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

    Dgram

Python Telegram bot api.


Maintainers
1

Readme

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()

Keywords

FAQs


Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc