Documentation
¶
Index ¶
- Variables
- type Telegram
- func (t *Telegram) Name() string
- func (t *Telegram) Presenter() channel.Presenter
- func (t *Telegram) ProbeThread(ctx context.Context, senderID string) error
- func (t *Telegram) RenameThread(ctx context.Context, replyToken, name string)
- func (t *Telegram) Send(ctx context.Context, msg channel.OutboundMessage) error
- func (t *Telegram) Setup(ctx context.Context) error
- func (t *Telegram) ShareQR(_ context.Context) (string, error)
- func (t *Telegram) Start(ctx context.Context, handler channel.InboundHandler) error
- func (t *Telegram) StartTyping(ctx context.Context, _ string, replyToken string) (stop func())
Constants ¶
This section is empty.
Variables ¶
View Source
var PromptMD string
Functions ¶
This section is empty.
Types ¶
type Telegram ¶
type Telegram struct {
// contains filtered or unexported fields
}
func (*Telegram) ProbeThread ¶
ProbeThread checks if the topic for senderID still exists by sending a probe message and deleting it. sendChatAction is unreliable for private chat topics (Telegram ignores invalid thread_id silently).
func (*Telegram) RenameThread ¶
Click to show internal directories.
Click to hide internal directories.