Versions in this module Expand all Collapse all v1 v1.1.0 Jun 11, 2022 Changes in this version + const OAPIURL + type ActionCardButton struct + Title string + URL string + type ActionCardMessage struct + Buttons []ActionCardButton + Content string + Horizontal bool + Title string + func (m ActionCardMessage) Render() (ret []byte, err error) + type Bot struct + func NewBot(token, secret string) *Bot + func (s *Bot) SendMessage(msg MessageRender) (err error) + type FeedCardLink struct + MessageURL string + PicURL string + Title string + type FeedCardMessage struct + Links []FeedCardLink + func (m FeedCardMessage) Render() (ret []byte, err error) + type LinkMessage struct + Content string + MessageURL string + PicURL string + Title string + func (m LinkMessage) Render() (ret []byte, err error) + type MarkDownMessage struct + AtAll bool + AtMobiles []string + Content string + Title string + func (m MarkDownMessage) Render() (ret []byte, err error) + type MessageRender interface + Render func() ([]byte, error) + type TextMessage struct + AtAll bool + AtMobiles []string + AtUserIds []string + Content string + func (m TextMessage) Render() (ret []byte, err error)