Documentation
¶
Index ¶
- type Updatectx
- func (u *Updatectx) Close()
- func (u *Updatectx) Dbuser() *db.User
- func (u *Updatectx) Drop() bool
- func (u *Updatectx) FromChat() *tgbotapi.Chat
- func (u *Updatectx) FromUser() *tgbotapi.User
- func (u Updatectx) IsCommand(cmd string) bool
- func (u Updatectx) Iscallback() (bool, error)
- func (u *Updatectx) SetDrop(drp bool)
- func (u *Updatectx) Setcallback()
- func (u *Updatectx) Setservice(srvname string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Updatectx ¶
type Updatectx struct {
Ctx context.Context
Cancle context.CancelFunc
Service string
Update *tgbotapi.Update
User *bottype.User
Newuser bool
Serviceset bool
ShouldSave bool
Chat_ID int64
Chat *tgbotapi.Chat
Command string // only use inside setuser method in parser
// contains filtered or unexported fields
}
func (Updatectx) Iscallback ¶
func (*Updatectx) Setcallback ¶
func (u *Updatectx) Setcallback()
func (*Updatectx) Setservice ¶
Click to show internal directories.
Click to hide internal directories.