rss

package
v1.3.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 1, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddRssForChatID

func AddRssForChatID(chatID int64, link string) error

向数据库中添加一个表 格式为 rss_subs<ChatID>

func AllUser

func AllUser() []int64

func DeleteTable

func DeleteTable(chatID int64) error

func GetAllSubs

func GetAllSubs(chatID int64) ([]string, error)

func ListAllSubs

func ListAllSubs(chatID int64) (string, error)

func Refresh

func Refresh(chatID int64, bot *tgbotapi.BotAPI) ([]rss.Item, error)

func RefreshAll

func RefreshAll(bot *tgbotapi.BotAPI) error

func RefreshAndSend

func RefreshAndSend(chatID int64, bot *tgbotapi.BotAPI) error

刷新并发送

func RemoveRssForChatID

func RemoveRssForChatID(chatID int64, link string, bot *tgbotapi.BotAPI) error

RemoveRssForChatID 删除订阅链接

func SQLRun

func SQLRun(query string) (sql.Result, error)

func SendRssUpdate

func SendRssUpdate(chatID int64, items []rss.Item, bot *tgbotapi.BotAPI)

Types

type RssConfig

type RssConfig struct {
	ChatID int64    `json:"chat_id"`
	Rss    []string `json:"rss"`
	Cache  []string `json:"cache"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL