Documentation
¶
Index ¶
- type BotHandler
- func (b *BotHandler) ApprovePurchase(c tele.Context) error
- func (b *BotHandler) ChoosePurchaseMethod(c tele.Context) error
- func (b *BotHandler) HandleBankOrder(c tele.Context) error
- func (b *BotHandler) HandleCard2CardOrder(c tele.Context) error
- func (b *BotHandler) Help(c tele.Context) error
- func (b *BotHandler) MainMenu(c tele.Context) error
- func (b *BotHandler) Purchase(c tele.Context) error
- func (b *BotHandler) PurchaseReceipt(c tele.Context) error
- func (b *BotHandler) Register(c tele.Context) error
- func (b *BotHandler) RejectPurchase(c tele.Context) error
- func (b *BotHandler) Start()
- func (b *BotHandler) StartNotifyingAdmins()
- func (b *BotHandler) StartNotifyingUsers()
- func (b *BotHandler) Sub(c tele.Context) error
- func (b *BotHandler) TrafficUsage(c tele.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BotHandler ¶
type BotHandler struct {
// contains filtered or unexported fields
}
func NewBotHandler ¶
func NewBotHandler(userService *core.UserService, domainAddr string) *BotHandler
func (*BotHandler) ApprovePurchase ¶ added in v0.3.1
func (b *BotHandler) ApprovePurchase(c tele.Context) error
func (*BotHandler) ChoosePurchaseMethod ¶ added in v0.4.1
func (b *BotHandler) ChoosePurchaseMethod(c tele.Context) error
func (*BotHandler) HandleBankOrder ¶ added in v0.4.1
func (b *BotHandler) HandleBankOrder(c tele.Context) error
func (*BotHandler) HandleCard2CardOrder ¶ added in v0.4.1
func (b *BotHandler) HandleCard2CardOrder(c tele.Context) error
func (*BotHandler) PurchaseReceipt ¶ added in v0.3.1
func (b *BotHandler) PurchaseReceipt(c tele.Context) error
func (*BotHandler) RejectPurchase ¶ added in v0.3.1
func (b *BotHandler) RejectPurchase(c tele.Context) error
func (*BotHandler) Start ¶
func (b *BotHandler) Start()
func (*BotHandler) StartNotifyingAdmins ¶ added in v0.3.1
func (b *BotHandler) StartNotifyingAdmins()
StartNotifyingAdmins loops over a channel and sends a photo with caption to the admin channel
func (*BotHandler) StartNotifyingUsers ¶ added in v0.3.1
func (b *BotHandler) StartNotifyingUsers()
func (*BotHandler) TrafficUsage ¶
func (b *BotHandler) TrafficUsage(c tele.Context) error
Click to show internal directories.
Click to hide internal directories.