Documentation
¶
Index ¶
- type BotHandler
- func (b *BotHandler) ApprovePurchase(c tele.Context) error
- func (b *BotHandler) HandlePackagePurchase(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(domainAddr string) *BotHandler
func (*BotHandler) ApprovePurchase ¶ added in v0.3.1
func (b *BotHandler) ApprovePurchase(c tele.Context) error
func (*BotHandler) HandlePackagePurchase ¶ added in v0.3.1
func (b *BotHandler) HandlePackagePurchase(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.