Documentation ¶
Index ¶
- type Client
- func (c *Client) DisplayName(u *tb.User) string
- func (c *Client) GetUserName(m *tb.Message) string
- func (c *Client) Me() *tb.User
- func (c *Client) OnMessage(handler func(m *tb.Message))
- func (c *Client) Send(to tb.Recipient, msg interface{})
- func (c *Client) SendAdmin(to []Users.User, msg string)
- func (c *Client) SendChoices(to tb.Recipient, msg string, list []string)
- func (c *Client) SendError(to tb.Recipient, msg string)
- func (c *Client) SendMany(to []Users.User, msg string)
- func (c *Client) Start()
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) DisplayName ¶
DisplayName will generate a "display name" for a user
func (*Client) GetUserName ¶
GetUserName will generate a "user name" for a given user
func (*Client) SendChoices ¶
SendChoices will send a list of keyboard choices to a user
Click to show internal directories.
Click to hide internal directories.