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
$ pip install Telegram-Bot8
Usage
from Bot.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()
Credits
Jeyavishnu |
License
Distributed under the MIT License. See LICENSE
for more information.
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.5.tar.gz
(12.2 kB
view hashes)
Built Distribution
Close
Hashes for Telegram_Bot8-0.1.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c96e3108061c2cfbeaba6b8ff252ff3b1b0f22fcbafc6246025f4d6eb4a95ebe |
|
MD5 | c8df30b290166f51777ba9b40b9bf283 |
|
BLAKE2b-256 | e051a2f8a950b043dcfb4d339367939a8dcb1b80d5a8c6f2892927dae64278eb |