Documentation ¶
Index ¶
- type ErrUpd
- type IEventHandler
- func (_m *IEventHandler) Decorate(_a0 tgchain.IEventHandler)
- func (_m *IEventHandler) GetDescription() string
- func (_m *IEventHandler) GetName() string
- func (_m *IEventHandler) Handle(_a0 context.Context, _a1 tgbotapi.Update) error
- func (_m *IEventHandler) Next(_a0 context.Context, _a1 tgbotapi.Update) error
- type IListener
- type ITgAPI
- func (_m *ITgAPI) AnswerInlineQuery(_a0 tgbotapi.InlineConfig) (tgbotapi.APIResponse, error)
- func (_m *ITgAPI) GetChatMember(_a0 tgbotapi.ChatConfigWithUser) (tgbotapi.ChatMember, error)
- func (_m *ITgAPI) GetMe() (tgbotapi.User, error)
- func (_m *ITgAPI) GetUpdatesChan(_a0 tgbotapi.UpdateConfig) (tgbotapi.UpdatesChannel, error)
- func (_m *ITgAPI) LeaveChat(_a0 tgbotapi.ChatConfig) (tgbotapi.APIResponse, error)
- func (_m *ITgAPI) Send(_a0 tgbotapi.Chattable) (tgbotapi.Message, error)
- type TelebotContext
- func (_m *TelebotContext) Accept(errorMessage ...string) error
- func (_m *TelebotContext) Answer(resp *telebot.QueryResponse) error
- func (_m *TelebotContext) Args() []string
- func (_m *TelebotContext) Bot() *telebot.Bot
- func (_m *TelebotContext) Callback() *telebot.Callback
- func (_m *TelebotContext) Chat() *telebot.Chat
- func (_m *TelebotContext) ChatJoinRequest() *telebot.ChatJoinRequest
- func (_m *TelebotContext) ChatMember() *telebot.ChatMemberUpdate
- func (_m *TelebotContext) Data() string
- func (_m *TelebotContext) Delete() error
- func (_m *TelebotContext) DeleteAfter(d time.Duration) *time.Timer
- func (_m *TelebotContext) Edit(what interface{}, opts ...interface{}) error
- func (_m *TelebotContext) EditCaption(caption string, opts ...interface{}) error
- func (_m *TelebotContext) EditOrReply(what interface{}, opts ...interface{}) error
- func (_m *TelebotContext) EditOrSend(what interface{}, opts ...interface{}) error
- func (_m *TelebotContext) Entities() telebot.Entities
- func (_m *TelebotContext) Forward(msg telebot.Editable, opts ...interface{}) error
- func (_m *TelebotContext) ForwardTo(to telebot.Recipient, opts ...interface{}) error
- func (_m *TelebotContext) Get(key string) interface{}
- func (_m *TelebotContext) InlineResult() *telebot.InlineResult
- func (_m *TelebotContext) Message() *telebot.Message
- func (_m *TelebotContext) Migration() (int64, int64)
- func (_m *TelebotContext) Notify(action telebot.ChatAction) error
- func (_m *TelebotContext) Poll() *telebot.Poll
- func (_m *TelebotContext) PollAnswer() *telebot.PollAnswer
- func (_m *TelebotContext) PreCheckoutQuery() *telebot.PreCheckoutQuery
- func (_m *TelebotContext) Query() *telebot.Query
- func (_m *TelebotContext) Recipient() telebot.Recipient
- func (_m *TelebotContext) Reply(what interface{}, opts ...interface{}) error
- func (_m *TelebotContext) Respond(resp ...*telebot.CallbackResponse) error
- func (_m *TelebotContext) Send(what interface{}, opts ...interface{}) error
- func (_m *TelebotContext) SendAlbum(a telebot.Album, opts ...interface{}) error
- func (_m *TelebotContext) Sender() *telebot.User
- func (_m *TelebotContext) Set(key string, val interface{})
- func (_m *TelebotContext) Ship(what ...interface{}) error
- func (_m *TelebotContext) ShippingQuery() *telebot.ShippingQuery
- func (_m *TelebotContext) Text() string
- func (_m *TelebotContext) Update() telebot.Update
- type WarnUpd
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrUpd ¶
ErrUpd is an autogenerated mock type for the ErrUpd type
type IEventHandler ¶
IEventHandler is an autogenerated mock type for the IEventHandler type
func NewIEventHandler ¶
func NewIEventHandler(t mockConstructorTestingTNewIEventHandler) *IEventHandler
NewIEventHandler creates a new instance of IEventHandler. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*IEventHandler) Decorate ¶
func (_m *IEventHandler) Decorate(_a0 tgchain.IEventHandler)
Decorate provides a mock function with given fields: _a0
func (*IEventHandler) GetDescription ¶
func (_m *IEventHandler) GetDescription() string
GetDescription provides a mock function with given fields:
func (*IEventHandler) GetName ¶
func (_m *IEventHandler) GetName() string
GetName provides a mock function with given fields:
type IListener ¶
IListener is an autogenerated mock type for the IListener type
func NewIListener ¶
func NewIListener(t mockConstructorTestingTNewIListener) *IListener
NewIListener creates a new instance of IListener. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
type ITgAPI ¶
ITgAPI is an autogenerated mock type for the ITgAPI type
func NewITgAPI ¶
func NewITgAPI(t mockConstructorTestingTNewITgAPI) *ITgAPI
NewITgAPI creates a new instance of ITgAPI. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*ITgAPI) AnswerInlineQuery ¶
func (_m *ITgAPI) AnswerInlineQuery(_a0 tgbotapi.InlineConfig) (tgbotapi.APIResponse, error)
AnswerInlineQuery provides a mock function with given fields: _a0
func (*ITgAPI) GetChatMember ¶
func (_m *ITgAPI) GetChatMember(_a0 tgbotapi.ChatConfigWithUser) (tgbotapi.ChatMember, error)
GetChatMember provides a mock function with given fields: _a0
func (*ITgAPI) GetUpdatesChan ¶
func (_m *ITgAPI) GetUpdatesChan(_a0 tgbotapi.UpdateConfig) (tgbotapi.UpdatesChannel, error)
GetUpdatesChan provides a mock function with given fields: _a0
func (*ITgAPI) LeaveChat ¶
func (_m *ITgAPI) LeaveChat(_a0 tgbotapi.ChatConfig) (tgbotapi.APIResponse, error)
LeaveChat provides a mock function with given fields: _a0
type TelebotContext ¶
TelebotContext is an autogenerated mock type for the TelebotContext type
func NewTelebotContext ¶
func NewTelebotContext(t mockConstructorTestingTNewTelebotContext) *TelebotContext
NewTelebotContext creates a new instance of TelebotContext. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*TelebotContext) Accept ¶
func (_m *TelebotContext) Accept(errorMessage ...string) error
Accept provides a mock function with given fields: errorMessage
func (*TelebotContext) Answer ¶
func (_m *TelebotContext) Answer(resp *telebot.QueryResponse) error
Answer provides a mock function with given fields: resp
func (*TelebotContext) Args ¶
func (_m *TelebotContext) Args() []string
Args provides a mock function with given fields:
func (*TelebotContext) Bot ¶
func (_m *TelebotContext) Bot() *telebot.Bot
Bot provides a mock function with given fields:
func (*TelebotContext) Callback ¶
func (_m *TelebotContext) Callback() *telebot.Callback
Callback provides a mock function with given fields:
func (*TelebotContext) Chat ¶
func (_m *TelebotContext) Chat() *telebot.Chat
Chat provides a mock function with given fields:
func (*TelebotContext) ChatJoinRequest ¶
func (_m *TelebotContext) ChatJoinRequest() *telebot.ChatJoinRequest
ChatJoinRequest provides a mock function with given fields:
func (*TelebotContext) ChatMember ¶
func (_m *TelebotContext) ChatMember() *telebot.ChatMemberUpdate
ChatMember provides a mock function with given fields:
func (*TelebotContext) Data ¶
func (_m *TelebotContext) Data() string
Data provides a mock function with given fields:
func (*TelebotContext) Delete ¶
func (_m *TelebotContext) Delete() error
Delete provides a mock function with given fields:
func (*TelebotContext) DeleteAfter ¶
func (_m *TelebotContext) DeleteAfter(d time.Duration) *time.Timer
DeleteAfter provides a mock function with given fields: d
func (*TelebotContext) Edit ¶
func (_m *TelebotContext) Edit(what interface{}, opts ...interface{}) error
Edit provides a mock function with given fields: what, opts
func (*TelebotContext) EditCaption ¶
func (_m *TelebotContext) EditCaption(caption string, opts ...interface{}) error
EditCaption provides a mock function with given fields: caption, opts
func (*TelebotContext) EditOrReply ¶
func (_m *TelebotContext) EditOrReply(what interface{}, opts ...interface{}) error
EditOrReply provides a mock function with given fields: what, opts
func (*TelebotContext) EditOrSend ¶
func (_m *TelebotContext) EditOrSend(what interface{}, opts ...interface{}) error
EditOrSend provides a mock function with given fields: what, opts
func (*TelebotContext) Entities ¶
func (_m *TelebotContext) Entities() telebot.Entities
Entities provides a mock function with given fields:
func (*TelebotContext) Forward ¶
func (_m *TelebotContext) Forward(msg telebot.Editable, opts ...interface{}) error
Forward provides a mock function with given fields: msg, opts
func (*TelebotContext) ForwardTo ¶
func (_m *TelebotContext) ForwardTo(to telebot.Recipient, opts ...interface{}) error
ForwardTo provides a mock function with given fields: to, opts
func (*TelebotContext) Get ¶
func (_m *TelebotContext) Get(key string) interface{}
Get provides a mock function with given fields: key
func (*TelebotContext) InlineResult ¶
func (_m *TelebotContext) InlineResult() *telebot.InlineResult
InlineResult provides a mock function with given fields:
func (*TelebotContext) Message ¶
func (_m *TelebotContext) Message() *telebot.Message
Message provides a mock function with given fields:
func (*TelebotContext) Migration ¶
func (_m *TelebotContext) Migration() (int64, int64)
Migration provides a mock function with given fields:
func (*TelebotContext) Notify ¶
func (_m *TelebotContext) Notify(action telebot.ChatAction) error
Notify provides a mock function with given fields: action
func (*TelebotContext) Poll ¶
func (_m *TelebotContext) Poll() *telebot.Poll
Poll provides a mock function with given fields:
func (*TelebotContext) PollAnswer ¶
func (_m *TelebotContext) PollAnswer() *telebot.PollAnswer
PollAnswer provides a mock function with given fields:
func (*TelebotContext) PreCheckoutQuery ¶
func (_m *TelebotContext) PreCheckoutQuery() *telebot.PreCheckoutQuery
PreCheckoutQuery provides a mock function with given fields:
func (*TelebotContext) Query ¶
func (_m *TelebotContext) Query() *telebot.Query
Query provides a mock function with given fields:
func (*TelebotContext) Recipient ¶
func (_m *TelebotContext) Recipient() telebot.Recipient
Recipient provides a mock function with given fields:
func (*TelebotContext) Reply ¶
func (_m *TelebotContext) Reply(what interface{}, opts ...interface{}) error
Reply provides a mock function with given fields: what, opts
func (*TelebotContext) Respond ¶
func (_m *TelebotContext) Respond(resp ...*telebot.CallbackResponse) error
Respond provides a mock function with given fields: resp
func (*TelebotContext) Send ¶
func (_m *TelebotContext) Send(what interface{}, opts ...interface{}) error
Send provides a mock function with given fields: what, opts
func (*TelebotContext) SendAlbum ¶
func (_m *TelebotContext) SendAlbum(a telebot.Album, opts ...interface{}) error
SendAlbum provides a mock function with given fields: a, opts
func (*TelebotContext) Sender ¶
func (_m *TelebotContext) Sender() *telebot.User
Sender provides a mock function with given fields:
func (*TelebotContext) Set ¶
func (_m *TelebotContext) Set(key string, val interface{})
Set provides a mock function with given fields: key, val
func (*TelebotContext) Ship ¶
func (_m *TelebotContext) Ship(what ...interface{}) error
Ship provides a mock function with given fields: what
func (*TelebotContext) ShippingQuery ¶
func (_m *TelebotContext) ShippingQuery() *telebot.ShippingQuery
ShippingQuery provides a mock function with given fields:
func (*TelebotContext) Text ¶
func (_m *TelebotContext) Text() string
Text provides a mock function with given fields:
func (*TelebotContext) Update ¶
func (_m *TelebotContext) Update() telebot.Update
Update provides a mock function with given fields:
type WarnUpd ¶
WarnUpd is an autogenerated mock type for the WarnUpd type
func NewWarnUpd ¶
func NewWarnUpd(t mockConstructorTestingTNewWarnUpd) *WarnUpd
NewWarnUpd creates a new instance of WarnUpd. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.