一个用于构建telegram bot的极简包
Zybot的Python项目详细描述
自述文件
==
一个基本的电报启动程序,以避免一些重复,并使用python telegram bot api在python上重写
usage
-
代码块::python
对您说“Hello World”
“
bot.send_message(chat_id=update.message.chat_id,text=”Hello World“)
@application.command()
@application.restricted
def protected(bot,更新:
“
对您说“你好管理员”
“
bot.send_message(chat_id=update.message.chat_id,text=”你好管理员“)
代码块::ini
[默认值]
token=token=token=u given_by_the_bot_father
分隔符,
admin=id_given_by_user_info_bot
代码块:none
$zybot_app=“hello.py”python3-m zybot zybot
==
一个基本的电报启动程序,以避免一些重复,并使用python telegram bot api在python上重写
usage
-
代码块::python
对您说“Hello World”
“
bot.send_message(chat_id=update.message.chat_id,text=”Hello World“)
@application.command()
@application.restricted
def protected(bot,更新:
“
对您说“你好管理员”
“
bot.send_message(chat_id=update.message.chat_id,text=”你好管理员“)
代码块::ini
[默认值]
token=token=token=u given_by_the_bot_father
分隔符,
admin=id_given_by_user_info_bot
代码块:none
$zybot_app=“hello.py”python3-m zybot zybot