channels

package
v0.0.0-...-617dd5f Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2020 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ChannelInstagram = "instagram"
	ChannelTwitter   = "twitter"
	ChannelWeibo     = "weibo"
	ChannelBilibili  = "bilibili"
)

Variables

Functions

func GetLastPostsFromRSS

func GetLastPostsFromRSS(rssUrl string) ([]models.Post, error)

func ParseSubscribeCommand

func ParseSubscribeCommand(elements []string) (map[string][]string, error)

return map[channel] -> userIds

func PullUser

func PullUser(channel, userID string, subscriptions []models.Subscription)

func Subscribe

func Subscribe(channel string, userIds []string, tgUserId int, chatId int64) error

return failed list and error

func UnSubscribe

func UnSubscribe(channel, userId string, tgUserId int) error

func UnSubscribeByReply

func UnSubscribeByReply(tgUserId, msgId int) error

func WeiboImageResizeTo

func WeiboImageResizeTo(imgUrl, target string) string

func WeiboPostAlterFunc

func WeiboPostAlterFunc(p *models.Post)

Types

This section is empty.

Jump to

Keyboard shortcuts

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