Versions in this module Expand all Collapse all v2 v2.0.1 Nov 23, 2023 Changes in this version + func EndConversation() error + func EndConversationToParentState(parentState *ConversationStateChange) error + func NextConversationStateAndParentState(nextState string, parentState *ConversationStateChange) error + func NextParentConversationState(parentState *ConversationStateChange) error + type CallbackQuery struct + AllowChannel bool + Filter filters.CallbackQuery + Response Response + func NewCallback(filter filters.CallbackQuery, r Response) CallbackQuery + func (cb CallbackQuery) CheckUpdate(b *gotgbot.Bot, ctx *ext.Context) bool + func (cb CallbackQuery) HandleUpdate(b *gotgbot.Bot, ctx *ext.Context) error + func (cb CallbackQuery) Name() string + type ChatJoinRequest struct + Filter filters.ChatJoinRequest + Response Response + func NewChatJoinRequest(f filters.ChatJoinRequest, r Response) ChatJoinRequest + func (r ChatJoinRequest) CheckUpdate(b *gotgbot.Bot, ctx *ext.Context) bool + func (r ChatJoinRequest) HandleUpdate(b *gotgbot.Bot, ctx *ext.Context) error + func (r ChatJoinRequest) Name() string + type ChatMember struct + Filter filters.ChatMember + Response Response + func NewChatMember(f filters.ChatMember, r Response) ChatMember + func (c ChatMember) CheckUpdate(b *gotgbot.Bot, ctx *ext.Context) bool + func (c ChatMember) HandleUpdate(b *gotgbot.Bot, ctx *ext.Context) error + func (c ChatMember) Name() string + type ChosenInlineResult struct + Filter filters.ChosenInlineResult + Response Response + func NewChosenInlineResult(filter filters.ChosenInlineResult, r Response) ChosenInlineResult + func (i ChosenInlineResult) CheckUpdate(b *gotgbot.Bot, ctx *ext.Context) bool + func (i ChosenInlineResult) HandleUpdate(b *gotgbot.Bot, ctx *ext.Context) error + func (i ChosenInlineResult) Name() string + type Command struct + AllowChannel bool + AllowEdited bool + Command string + Response Response + Triggers []rune + func NewCommand(c string, r Response) Command + func (c Command) CheckUpdate(b *gotgbot.Bot, ctx *ext.Context) bool + func (c Command) HandleUpdate(b *gotgbot.Bot, ctx *ext.Context) error + func (c Command) Name() string + type Conversation struct + AllowReEntry bool + EntryPoints []ext.Handler + Exits []ext.Handler + Fallbacks []ext.Handler + StateStorage conversation.Storage + States map[string][]ext.Handler + func NewConversation(entryPoints []ext.Handler, states map[string][]ext.Handler, ...) Conversation + func (c Conversation) CheckUpdate(b *gotgbot.Bot, ctx *ext.Context) bool + func (c Conversation) HandleUpdate(b *gotgbot.Bot, ctx *ext.Context) error + func (c Conversation) Name() string + type ConversationOpts struct + AllowReEntry bool + Exits []ext.Handler + Fallbacks []ext.Handler + StateStorage conversation.Storage + type ConversationStateChange struct + End bool + NextState *string + ParentState *ConversationStateChange + func NextConversationState(nextState string) *ConversationStateChange + func (s *ConversationStateChange) Error() string + type InlineQuery struct + Filter filters.InlineQuery + Response Response + func NewInlineQuery(f filters.InlineQuery, r Response) InlineQuery + func (i InlineQuery) CheckUpdate(b *gotgbot.Bot, ctx *ext.Context) bool + func (i InlineQuery) HandleUpdate(b *gotgbot.Bot, ctx *ext.Context) error + func (i InlineQuery) Name() string + type Message struct + AllowChannel bool + AllowEdited bool + Filter filters.Message + Response Response + func NewMessage(f filters.Message, r Response) Message + func (m Message) CheckUpdate(b *gotgbot.Bot, ctx *ext.Context) bool + func (m Message) HandleUpdate(b *gotgbot.Bot, ctx *ext.Context) error + func (m Message) Name() string + type MyChatMember struct + Filter filters.ChatMember + Response Response + func NewMyChatMember(f filters.ChatMember, r Response) MyChatMember + func (m MyChatMember) CheckUpdate(b *gotgbot.Bot, ctx *ext.Context) bool + func (m MyChatMember) HandleUpdate(b *gotgbot.Bot, ctx *ext.Context) error + func (m MyChatMember) Name() string + type Named struct + CustomName string + func NewNamedhandler(name string, handler ext.Handler) Named + func (n Named) Name() string + type Poll struct + Filter filters.Poll + Response Response + func NewPoll(f filters.Poll, r Response) Poll + func (r Poll) CheckUpdate(b *gotgbot.Bot, ctx *ext.Context) bool + func (r Poll) HandleUpdate(b *gotgbot.Bot, ctx *ext.Context) error + func (r Poll) Name() string + type PollAnswer struct + Filter filters.PollAnswer + Response Response + func NewPollAnswer(f filters.PollAnswer, r Response) PollAnswer + func (r PollAnswer) CheckUpdate(b *gotgbot.Bot, ctx *ext.Context) bool + func (r PollAnswer) HandleUpdate(b *gotgbot.Bot, ctx *ext.Context) error + func (r PollAnswer) Name() string + type Response func(b *gotgbot.Bot, ctx *ext.Context) error