Documentation ¶
Index ¶
- Constants
- func InitBotService() error
- type TgBot
- func (p *TgBot) Check4Config()
- func (p *TgBot) Check4ConfigOnce(checkConfig types.CheckConfig)
- func (p *TgBot) CheckAdmin(ctx context.Context, c tb.Context) error
- func (p *TgBot) DefaultHandle()
- func (p *TgBot) Edit(msg tb.Editable, what interface{}, opts ...interface{}) (*tb.Message, error)
- func (p *TgBot) Handle(endpoint interface{}, h tb.HandlerFunc, m ...tb.MiddlewareFunc)
- func (p *TgBot) Reply(to *tb.Message, what interface{}, opts ...interface{}) (*tb.Message, error)
- func (p *TgBot) RunAlways(sign chan os.Signal)
- func (p *TgBot) Send(to tb.Recipient, what interface{}, opts ...interface{}) (*tb.Message, error)
- func (p *TgBot) Start()
- func (p *TgBot) UnlockCheck(req UnlockCheckReq)
- type UnlockCheckReq
Constants ¶
View Source
const ( MimeJpeg = "image/jpeg" MimeGif = "image/gif" MimePng = "image/png" MimePdf = "application/pdf" MimeMpeg = "audio/mpeg" MimeQuicktime = "video/quicktime" MimeMp4 = "video/mp4" MimeWebp = "image/webp" Xlsx = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" )
Variables ¶
This section is empty.
Functions ¶
func InitBotService ¶
func InitBotService() error
Types ¶
type TgBot ¶
type TgBot struct {
// contains filtered or unexported fields
}
var Bot *TgBot
func (*TgBot) Check4Config ¶
func (p *TgBot) Check4Config()
func (*TgBot) Check4ConfigOnce ¶
func (p *TgBot) Check4ConfigOnce(checkConfig types.CheckConfig)
func (*TgBot) DefaultHandle ¶
func (p *TgBot) DefaultHandle()
func (*TgBot) Handle ¶
func (p *TgBot) Handle(endpoint interface{}, h tb.HandlerFunc, m ...tb.MiddlewareFunc)
func (*TgBot) UnlockCheck ¶
func (p *TgBot) UnlockCheck(req UnlockCheckReq)
type UnlockCheckReq ¶
type UnlockCheckReq struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.