Exemplo n.º 1
0
func NewFFFBot(name, token string) *FFFBot {
	b := &FFFBot{tg.NewCommandBot(name, token), make(map[int]*Stake)}
	b.OnCommand("fff", b.handleFFF)
	return b
}
Exemplo n.º 2
0
func NewDuanziBot(token string) *DuanziBot {
	b := &DuanziBot{tg.NewCommandBot(token)}
	b.OnCommand("duanzi", b.handleDuanzi)
	return b
}