Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bot ¶
type Bot interface {
Handle(command string, h HandlerFunc)
Send(userId int64, text string, opts ...interface{}) (e *Editable, err error)
SendPhoto(userId int64, photo *Photo, opts ...interface{}) (e *Editable, err error)
SendDocument(userId int64, filename string) error
Edit(edit *Editable, text string, opts ...interface{}) (e *Editable, err error)
Delete(edit *Editable) error
Start()
Stop()
}
type BtnContext ¶
type Editable ¶
func (*Editable) MessageSig ¶
type HandlerFunc ¶
type Inline ¶
type Inline struct {
ItemsPerRow int
Handler InlineHandler
// contains filtered or unexported fields
}
func NewInline ¶
func NewInline(itemsPerRow int, handler InlineHandler) *Inline
type InlineHandler ¶
type InlineHandler func(BtnContext) error
type UserProfile ¶
type UserProfile struct {
ID int64 `json:"id"`
}
func (*UserProfile) Recipient ¶
func (p *UserProfile) Recipient() string
Click to show internal directories.
Click to hide internal directories.