Documentation
¶
Index ¶
- type App
- type Chat
- func (c *Chat) HandleUpdate(update tg.Update)
- func (c *Chat) ProcessEvents(events []*frf.Event)
- func (c *Chat) Should(value interface{}, err error) (interface{}, error)
- func (c *Chat) ShouldOK(err error) error
- func (c *Chat) ShouldSend(msg tg.Chattable) (tg.Message, error)
- func (c *Chat) ShouldSendAndSave(msg tg.Chattable, rec store.SentMsgRec) (tg.Message, error)
- type ID
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App interface { store.Store DebugLog() debug.Logger ErrorLog() debug.Logger FreeFeedAPI() *frf.API Tg() *tg.BotAPI Send(tg.Chattable) (tg.Message, error) Linkify(string) string ContentOf(string) string StartRealtime(ID) StopRealtime(ID) EventsPaused(ID) bool PauseEvents(ID) ResumeEvents(ID) RTSend(chatID types.TgChatID, cmd string, payload interface{}, reply interface{}) error }
type Chat ¶
func (*Chat) HandleUpdate ¶
func (*Chat) ProcessEvents ¶
func (*Chat) ShouldSendAndSave ¶
Click to show internal directories.
Click to hide internal directories.