Documentation ¶
Index ¶
- func AddRssForChatID(chatID int64, link string) error
- func AllUser() []int64
- func DeleteTable(chatID int64) error
- func GetAllSubs(chatID int64) ([]string, error)
- func ListAllSubs(chatID int64) (string, error)
- func Refresh(chatID int64, bot *tgbotapi.BotAPI) ([]rss.Item, error)
- func RefreshAll(bot *tgbotapi.BotAPI) error
- func RefreshAndSend(chatID int64, bot *tgbotapi.BotAPI) error
- func RemoveRssForChatID(chatID int64, link string, bot *tgbotapi.BotAPI) error
- func SQLRun(query string) (sql.Result, error)
- func SendRssUpdate(chatID int64, items []rss.Item, bot *tgbotapi.BotAPI)
- type RssConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddRssForChatID ¶
向数据库中添加一个表 格式为 rss_subs<ChatID>
func DeleteTable ¶
func GetAllSubs ¶
func ListAllSubs ¶
func RefreshAll ¶
func RefreshAll(bot *tgbotapi.BotAPI) error
func RemoveRssForChatID ¶
RemoveRssForChatID 删除订阅链接
func SendRssUpdate ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.