Make your own telegram bot easily
Project description
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
Release history Release notifications | RSS feed
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 hashes)
Built Distribution
Close
Hashes for telegrambot_py-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7de903d5199c5bc6bea166a48d2019f60df4bbb920356fd523dc6dc5803b9a7a |
|
MD5 | 87c2e6e7a1e047d4d82590942732e812 |
|
BLAKE2b-256 | 4ac0d927a6a6662521d55d3330fb78072a75d98826ccdcce718a2bd5d8e1400d |