Documentation ¶
Index ¶
- type API
- func (api *API) Error(req Request)
- func (api *API) File(m *Message)
- func (api *API) Hello(m *Message)
- func (api *API) LogError(req Request, args ...interface{})
- func (api *API) LogErrorf(req Request, format string, args ...interface{})
- func (api *API) LogInfo(req Request, args ...interface{})
- func (api *API) LogInfof(req Request, format string, args ...interface{})
- func (api *API) LogWarn(req Request, args ...interface{})
- func (api *API) LogWarnf(req Request, format string, args ...interface{})
- func (api *API) Photo(m *Message)
- func (api *API) Unsupported(req Request)
- type Callback
- type Message
- type Request
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct {
*telebot.Bot
}
API wraps a Telegram bot for handling messages.
func WithBot ¶
func WithBot(bot *telebot.Bot) *API
WithBot wraps bot and returns an API instance for handling messages.
func (*API) Unsupported ¶
Unsupported replies to all unsupported messages.
Click to show internal directories.
Click to hide internal directories.