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')
def ping(ctx):
return 'pong'
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.0.1.tar.gz
(2.6 kB
view hashes)
Built Distribution
Close
Hashes for telegrambot_py-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 411e8c37478481b9d0194bc3d1f39ce54ee7ad823ea7f1a9616fc6691532d118 |
|
MD5 | e3fdab3d909f2358626d6cafef4d9328 |
|
BLAKE2b-256 | 68b9ed0fe0e5cbb85e3da4ede22b2c827a89d3f297f9860e3c82c824aee6538a |