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.

Source Distribution

telegrambot-py-0.1.0.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

telegrambot_py-0.1.0-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file telegrambot-py-0.1.0.tar.gz.

File metadata

  • Download URL: telegrambot-py-0.1.0.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.1

File hashes

Hashes for telegrambot-py-0.1.0.tar.gz
Algorithm Hash digest
SHA256 24004efd3c54f7463be2029c956664d3e2e3a49424bd43dbd10ffadd7ee89df8
MD5 21fb53250a67899a3ffbf98260ce00a7
BLAKE2b-256 f46648ec3e63516670c5f84b041589465e2f040006c64bde4c76cdc27198134c

See more details on using hashes here.

File details

Details for the file telegrambot_py-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: telegrambot_py-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.1

File hashes

Hashes for telegrambot_py-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7de903d5199c5bc6bea166a48d2019f60df4bbb920356fd523dc6dc5803b9a7a
MD5 87c2e6e7a1e047d4d82590942732e812
BLAKE2b-256 4ac0d927a6a6662521d55d3330fb78072a75d98826ccdcce718a2bd5d8e1400d

See more details on using hashes here.

Supported by

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