Skip to main content

Make your own telegram bot easily

Project description

Build status Coverage PyPI PyPI - Python Version License

telegrambot-py

Make your own telegram bot easily.

Getting Started

Before starting, you need to create a bot and get a token for it. For details, see instructions here.

Below is the example code that responds 'pong' for '/ping' command.

from telegrambot import Bot

bot = Bot('your_bot_token')

@bot.command('/ping {name}')
def ping(ctx, name):
    return "Hello, {}".format(name)

bot.start()

Development

Prerequsites

  • Python 3.5 or greater
  • Pipenv

Install dependencies

pipenv install --dev

Running Tests

pipenv run lint
pipenv run test

Deployment

pipenv run package

Project details


Download files

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

Files for telegrambot-py, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size telegrambot_py-0.1.0-py3-none-any.whl (4.7 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size telegrambot-py-0.1.0.tar.gz (3.0 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page