Documentation
¶
Index ¶
- Variables
- func CacheAssetsClear(ctx telebot.Context) error
- func Help(ctx telebot.Context) error
- func Reply(ctx telebot.Context, message string) error
- func ReplyPhoto(ctx telebot.Context, message *telebot.Photo) error
- func ReportError(ctx telebot.Context, format string, a ...any)
- func Respond(ctx telebot.Context, resp ...*telebot.CallbackResponse) error
- func Send(ctx telebot.Context, message string) error
- func SendPhoto(ctx telebot.Context, message *telebot.Photo) error
- func Trace(ctx telebot.Context) error
- func UpdateCurrentInlineKeyboard(sel *telebot.ReplyMarkup, uniq string) error
- type Bot
- type MessageType
- type PhotoButton
- type PhotoResponseHandler
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNoKeyboard = errors.New("no keyboard") ErrKeyboardHasAlreadyActive = errors.New("keyboard has already active") )
View Source
var ( UnknownPhoto *telebot.Photo NoPhoto *telebot.Photo )
View Source
var CurrentInlineKeywordMark = "✅"
View Source
var ErrDownloadPhotoNotFound = errors.New("download photo not found")
View Source
var ErrInvalidTelegramProxyURL = errors.New("invalid telegram proxy url")
Functions ¶
func CacheAssetsClear ¶
func CacheAssetsClear(ctx telebot.Context) error
func ReplyPhoto ¶
func ReplyPhoto(ctx telebot.Context, message *telebot.Photo) error
func ReportError ¶
Types ¶
type MessageType ¶
type MessageType int
const ( MessageText MessageType = iota + 1 MessageEmbed MessagePhoto MessageCachedPhoto MessagePhotoID )
type PhotoButton ¶
type PhotoButton struct { Title string Dir string Name string Message any MessageType MessageType }
type PhotoResponseHandler ¶
type PhotoResponseHandler struct { Buttons []PhotoButton NoPhotoMessage any }
func (PhotoResponseHandler) Get ¶
func (h PhotoResponseHandler) Get(ctx telebot.Context, relFilePath string) (MessageType, any)
func (PhotoResponseHandler) GetByButton ¶
func (h PhotoResponseHandler) GetByButton(ctx telebot.Context, fb PhotoButton) (MessageType, any)
func (PhotoResponseHandler) Handle ¶
func (h PhotoResponseHandler) Handle(ctx telebot.Context) error
Click to show internal directories.
Click to hide internal directories.