Documentation
¶
Index ¶
- type Client
- func (c *Client) GetChatInfo(ctx context.Context, chatID string) (domain.ChatInfo, error)
- func (c *Client) IterateMessages(ctx context.Context, chatID string, since time.Time, limit int) ([]domain.Message, error)
- func (c *Client) SendMessage(ctx context.Context, chatID, text string) (int, error)
- func (c *Client) Start(ctx context.Context) error
- func (c *Client) Stop(ctx context.Context) error
- func (c *Client) WaitReady() <-chan struct{}
- type ClientInterface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) GetChatInfo ¶
func (*Client) IterateMessages ¶
func (*Client) SendMessage ¶
type ClientInterface ¶
type ClientInterface interface {
SendMessage(ctx context.Context, chatID string, text string) (int, error)
GetChatInfo(ctx context.Context, chatID string) (domain.ChatInfo, error)
IterateMessages(ctx context.Context, chatID string, since time.Time, limit int) ([]domain.Message, error)
Start(ctx context.Context) error
Stop(ctx context.Context) error
WaitReady() <-chan struct{}
}
Click to show internal directories.
Click to hide internal directories.