Versions in this module Expand all Collapse all v2 v2.3.0 Feb 4, 2024 Changes in this version type MockContext + func (c *MockContext) Topic() *tb.Topic v2.2.0 Aug 19, 2023 Changes in this version + func HandleErr(t *testing.T, err error) + type MockBot struct + AllLastSentWhat []interface{} + LastSentWhat interface{} + func (b *MockBot) Handle(endpoint interface{}, handler tb.HandlerFunc, mw ...tb.MiddlewareFunc) + func (b *MockBot) Me() *tb.User + func (b *MockBot) Reset() + func (b *MockBot) Respond(c *tb.Callback, resp ...*tb.CallbackResponse) error + func (b *MockBot) Send(to tb.Recipient, what interface{}, options ...interface{}) (*tb.Message, error) + func (b *MockBot) SendSilent(...) (*tb.Message, error) + func (b *MockBot) Start() + type MockContext struct + M *tb.Message + func (c *MockContext) Accept(errorMessage ...string) error + func (c *MockContext) Answer(resp *tb.QueryResponse) error + func (c *MockContext) Args() []string + func (c *MockContext) Bot() *tb.Bot + func (c *MockContext) Callback() *tb.Callback + func (c *MockContext) Chat() *tb.Chat + func (c *MockContext) ChatJoinRequest() *tb.ChatJoinRequest + func (c *MockContext) ChatMember() *tb.ChatMemberUpdate + func (c *MockContext) Data() string + func (c *MockContext) Delete() error + func (c *MockContext) DeleteAfter(d time.Duration) *time.Timer + func (c *MockContext) Edit(what interface{}, opts ...interface{}) error + func (c *MockContext) EditCaption(caption string, opts ...interface{}) error + func (c *MockContext) EditOrReply(what interface{}, opts ...interface{}) error + func (c *MockContext) EditOrSend(what interface{}, opts ...interface{}) error + func (c *MockContext) Entities() tb.Entities + func (c *MockContext) Forward(msg tb.Editable, opts ...interface{}) error + func (c *MockContext) ForwardTo(to tb.Recipient, opts ...interface{}) error + func (c *MockContext) Get(key string) interface{} + func (c *MockContext) InlineResult() *tb.InlineResult + func (c *MockContext) Message() *tb.Message + func (c *MockContext) Migration() (int64, int64) + func (c *MockContext) Notify(action tb.ChatAction) error + func (c *MockContext) Poll() *tb.Poll + func (c *MockContext) PollAnswer() *tb.PollAnswer + func (c *MockContext) PreCheckoutQuery() *tb.PreCheckoutQuery + func (c *MockContext) Query() *tb.Query + func (c *MockContext) Recipient() tb.Recipient + func (c *MockContext) Reply(what interface{}, opts ...interface{}) error + func (c *MockContext) Respond(resp ...*tb.CallbackResponse) error + func (c *MockContext) Send(what interface{}, opts ...interface{}) error + func (c *MockContext) SendAlbum(a tb.Album, opts ...interface{}) error + func (c *MockContext) Sender() *tb.User + func (c *MockContext) Set(key string, val interface{}) + func (c *MockContext) Ship(what ...interface{}) error + func (c *MockContext) ShippingQuery() *tb.ShippingQuery + func (c *MockContext) Text() string + func (c *MockContext) Update() tb.Update Other modules containing this package github.com/LucaBernstein/beancount-bot-tg