Versions in this module Expand all Collapse all v4 v4.7.5 Apr 28, 2026 Changes in this version + const AllowedUpdateBusinessConnection + const AllowedUpdateBusinessMessage + const AllowedUpdateCallbackQuery + const AllowedUpdateChannelPost + const AllowedUpdateChatBoost + const AllowedUpdateChatJoinRequest + const AllowedUpdateChatMember + const AllowedUpdateChosenInlineResult + const AllowedUpdateDeletedBusinessMessages + const AllowedUpdateEditedBusinessMessage + const AllowedUpdateEditedChannelPost + const AllowedUpdateEditedMessage + const AllowedUpdateInlineQuery + const AllowedUpdateManagedBot + const AllowedUpdateMessage + const AllowedUpdateMessageReaction + const AllowedUpdateMessageReactionCount + const AllowedUpdateMyChatMember + const AllowedUpdatePoll + const AllowedUpdatePollAnswer + const AllowedUpdatePreCheckoutQuery + const AllowedUpdatePurchasedPaidMedia + const AllowedUpdateRemovedChatBoost + const AllowedUpdateShippingQuery + func FindTelegramUser(upd *tgbotapi.Update) (ret *tgbotapi.User) + type ChainHandler struct + Endpoint Handler + Middlewares Middlewares + func (c *ChainHandler) ServeTelegram(api *tgbotapi.BotAPI, upd *tgbotapi.Update) + type Configuration struct + DoNotContactUsers bool + LogoutFlagFile string + MiniAppUri string + NetworkFamily string + Proxy string + Token string + UriApi string + UriFile string + Webhook string + type Error struct + BusUnknownEvent dic.IError + GetWebhookInfo dic.IError + Logger dic.IError + Panic dic.IError + ProxyError dic.IError + RegistrationInterface dic.IError + RegistrationNilObject dic.IError + SendMessageToUser dic.IError + SubscriptionIncorrect dic.IError + WebhookCreate dic.IError + WebhookRegistration dic.IError + func Errors() *Error + type Handler interface + ServeTelegram func(api *tgbotapi.BotAPI, upd *tgbotapi.Update) + type HandlerFunc func(api *tgbotapi.BotAPI, upd *tgbotapi.Update) + func (f HandlerFunc) ServeTelegram(api *tgbotapi.BotAPI, upd *tgbotapi.Update) + type IUpdatesBusinessConnection interface + OnBusinessConnection func(api *tgbotapi.BotAPI, upd *tgbotapi.Update) + type IUpdatesBusinessMessage interface + OnBusinessMessage func(api *tgbotapi.BotAPI, upd *tgbotapi.Update) + type IUpdatesCallbackQuery interface + OnCallbackQuery func(api *tgbotapi.BotAPI, upd *tgbotapi.Update) + type IUpdatesChannelPost interface + OnChannelPost func(api *tgbotapi.BotAPI, upd *tgbotapi.Update) + type IUpdatesChatBoost interface + OnChatBoost func(api *tgbotapi.BotAPI, upd *tgbotapi.Update) + type IUpdatesChatJoinRequest interface + OnChatJoinRequest func(api *tgbotapi.BotAPI, upd *tgbotapi.Update) + type IUpdatesChatMember interface + OnChatMember func(api *tgbotapi.BotAPI, upd *tgbotapi.Update) + type IUpdatesChosenInlineResult interface + OnChosenInlineResult func(api *tgbotapi.BotAPI, upd *tgbotapi.Update) + type IUpdatesDeletedBusinessMessages interface + OnDeletedBusinessMessages func(api *tgbotapi.BotAPI, upd *tgbotapi.Update) + type IUpdatesEditedBusinessMessage interface + OnEditedBusinessMessage func(api *tgbotapi.BotAPI, upd *tgbotapi.Update) + type IUpdatesEditedChannelPost interface + OnEditedChannelPost func(api *tgbotapi.BotAPI, upd *tgbotapi.Update) + type IUpdatesEditedMessage interface + OnEditedMessage func(api *tgbotapi.BotAPI, upd *tgbotapi.Update) + type IUpdatesFull interface + type IUpdatesInlineQuery interface + OnInlineQuery func(api *tgbotapi.BotAPI, upd *tgbotapi.Update) + type IUpdatesManagedBot interface + OnManagedBot func(api *tgbotapi.BotAPI, upd *tgbotapi.Update) + type IUpdatesMessage interface + OnMessage func(api *tgbotapi.BotAPI, upd *tgbotapi.Update) + type IUpdatesMessageAudio interface + OnMessageAudio func(api *tgbotapi.BotAPI, upd *tgbotapi.Update) + type IUpdatesMessageChecklist interface + OnMessageChecklist func(api *tgbotapi.BotAPI, upd *tgbotapi.Update) + type IUpdatesMessageContact interface + OnMessageContact func(api *tgbotapi.BotAPI, upd *tgbotapi.Update) + type IUpdatesMessageDice interface + OnMessageDice func(api *tgbotapi.BotAPI, upd *tgbotapi.Update) + type IUpdatesMessageDocument interface + OnMessageDocument func(api *tgbotapi.BotAPI, upd *tgbotapi.Update) + type IUpdatesMessageGame interface + OnMessageGame func(api *tgbotapi.BotAPI, upd *tgbotapi.Update) + type IUpdatesMessageInvoice interface + OnMessageInvoice func(api *tgbotapi.BotAPI, upd *tgbotapi.Update) + type IUpdatesMessageLocation interface + OnMessageLocation func(api *tgbotapi.BotAPI, upd *tgbotapi.Update) + type IUpdatesMessagePhoto interface + OnMessagePhoto func(api *tgbotapi.BotAPI, upd *tgbotapi.Update) + type IUpdatesMessagePoll interface + OnMessagePoll func(api *tgbotapi.BotAPI, upd *tgbotapi.Update) + type IUpdatesMessageReaction interface + OnMessageReaction func(api *tgbotapi.BotAPI, upd *tgbotapi.Update) + type IUpdatesMessageReactionCount interface + OnMessageReactionCount func(api *tgbotapi.BotAPI, upd *tgbotapi.Update) + type IUpdatesMessageSticker interface + OnMessageSticker func(api *tgbotapi.BotAPI, upd *tgbotapi.Update) + type IUpdatesMessageStory interface + OnMessageStory func(api *tgbotapi.BotAPI, upd *tgbotapi.Update) + type IUpdatesMessageVenue interface + OnMessageVenue func(api *tgbotapi.BotAPI, upd *tgbotapi.Update) + type IUpdatesMessageVideo interface + OnMessageVideo func(api *tgbotapi.BotAPI, upd *tgbotapi.Update) + type IUpdatesMessageVideoNote interface + OnMessageVideoNote func(api *tgbotapi.BotAPI, upd *tgbotapi.Update) + type IUpdatesMessageVoice interface + OnMessageVoice func(api *tgbotapi.BotAPI, upd *tgbotapi.Update) + type IUpdatesMyChatMember interface + OnMyChatMember func(api *tgbotapi.BotAPI, upd *tgbotapi.Update, user *tgbotapi.User) + type IUpdatesPoll interface + OnPoll func(api *tgbotapi.BotAPI, upd *tgbotapi.Update) + type IUpdatesPollAnswer interface + OnPollAnswer func(api *tgbotapi.BotAPI, upd *tgbotapi.Update) + type IUpdatesPreCheckoutQuery interface + OnPreCheckoutQuery func(api *tgbotapi.BotAPI, upd *tgbotapi.Update) + type IUpdatesPurchasedPaidMedia interface + OnPurchasedPaidMedia func(api *tgbotapi.BotAPI, upd *tgbotapi.Update) + type IUpdatesRemovedChatBoost interface + OnRemovedChatBoost func(api *tgbotapi.BotAPI, upd *tgbotapi.Update) + type IUpdatesShippingQuery interface + OnShippingQuery func(api *tgbotapi.BotAPI, upd *tgbotapi.Update) + type IUpdatesTelegramUser interface + OnTelegramUser func(api *tgbotapi.BotAPI, upd *tgbotapi.Update, user *tgbotapi.User) (err error) + type Interface interface + BusSubscribe func() + BusUnsubscribe func() + Errors func() *Error + Initialization func(ctx context.Context, cfg *Configuration) (err error) + IsReady func() bool + LogOut func() (err error) + Registration func(obj any) (err error) + Use func(middlewares ...func(Handler) Handler) + func New() Interface + type Middlewares []func(Handler) Handler + func Chain(middlewares ...func(Handler) Handler) Middlewares + func (mws Middlewares) Handler(h Handler) Handler + func (mws Middlewares) HandlerFunc(h HandlerFunc) Handler + type UpdatesIncomingType string + func (uit UpdatesIncomingType) String() string