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.4.tar.gz
(11.9 kB
view hashes)
Built Distribution
Close
Hashes for Telegram_Bot8-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 562e5f6b840ea3420234407c13b421188f3c74a663c238468dac9224dfe94a97 |
|
MD5 | 9b114e9a22adae9ca44468e142084a74 |
|
BLAKE2b-256 | 26534cc0136f5cd1133c0f7255062736d17724b612c7c4c599c099bbb6ecba2e |