Python package to utilizes the telegram API to easily add commands and person other actions
Project description
TelegramBot
Project Description
This project uses the telegram bot API to create a bot service
Installation
To install with pip
$ python -m pip install repo_helper_github
Usage
from TeleBot import TeleBot
@bot.add_command_helper(command="/hi")
def hi(message: Message):
bot.send_message(message.chat.getID(), "Hello")
@bot.add_command_menu_helper(command="/bye", description="Just testing added command")
def bye(message: Message):
bot.send_message(message.chat.getID(), "Bye")
@bot.add_regex_helper(regex="^hi$")
def regex(message: Message):
bot.send_message(message.chat.getID(), "Hello")
bot.poll()
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
Telegram-Bot8-0.1.0.tar.gz
(11.5 kB
view hashes)
Built Distribution
Close
Hashes for Telegram_Bot8-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7c7d3cdaf6c0d8a33548eaea16025f6984fc2984dfd667396e05c20d6263fb4f |
|
MD5 | d439651d0a2cc9f4e24e7b5467ec335d |
|
BLAKE2b-256 | b3bb8baf99d2031952e2a79a93b539262aa65ba08df22669f51fd805a69b2e1e |