【文件属性】:
文件名称:tgflow:声明式电报bot框架
文件大小:15.25MB
文件格式:ZIP
更新时间:2021-02-05 09:11:03
bot framework telegram functional-programming declarative-programming
流量
声明式Bot框架
tgflow支持 ,和 。 期待添加Slack!
一站式:使用此框架来声明bot逻辑,然后在多个平台上无缝启动它。
这是您声明香草柜台机器人的方式:
import tgflow
states = {
'start' :{
'text' : tgflow . paste ( "Hello, i'm hooray bot. Hooray %i times!" ,
'count' , default = 1 ), # paste 'count' value to '%i' in string,