Documentation ¶
Index ¶
- Constants
- Variables
- func GetLastPostsFromRSS(rssUrl string) ([]models.Post, error)
- func ParseSubscribeCommand(elements []string) (map[string][]string, error)
- func PullUser(channel, userID string, subscriptions []models.Subscription)
- func Subscribe(channel string, userIds []string, tgUserId int, chatId int64) error
- func UnSubscribe(channel, userId string, tgUserId int) error
- func UnSubscribeByReply(tgUserId, msgId int) error
- func WeiboImageResizeTo(imgUrl, target string) string
- func WeiboPostAlterFunc(p *models.Post)
Constants ¶
View Source
const ( ChannelInstagram = "instagram" ChannelTwitter = "twitter" ChannelWeibo = "weibo" ChannelBilibili = "bilibili" )
Variables ¶
View Source
var SupportedChannels = map[string]bool{ ChannelInstagram: true, ChannelTwitter: true, ChannelWeibo: true, ChannelBilibili: true, }
Functions ¶
func ParseSubscribeCommand ¶
return map[channel] -> userIds
func PullUser ¶
func PullUser(channel, userID string, subscriptions []models.Subscription)
func UnSubscribe ¶
func UnSubscribeByReply ¶
func WeiboImageResizeTo ¶
func WeiboPostAlterFunc ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.