Versions in this module Expand all Collapse all v0 v0.8.4 Feb 19, 2022 Changes in this version + var B *tb.Bot + var UserState map[int64]fsm.UserStatus = make(map[int64]fsm.UserStatus) + func BroadcastNews(source *model.Source, subs []*model.Subscribe, contents []*model.Content) + func BroadcastSourceError(source *model.Source) + func CheckAdmin(upd *tb.Update) bool + func CheckURL(s string) bool + func FeedForChannelRegister(m *tb.Message, url string, channelMention string) + func GetMentionFromMessage(m *tb.Message) (mention string) + func GetURLAndMentionFromMessage(m *tb.Message) (url string, mention string) + func HasAdminType(t tb.ChatType) bool + func SendError(c *tb.Chat) + func Start() + func ToOPML(sources []model.Source) (string, error) + func UserIsAdminChannel(userID int, channelChat *tb.Chat) (isAdmin bool) + type Body struct + Outlines []Outline + type Head struct + DateCreated string + DateModified string + Docs string + ExpansionState string + OwnerEmail string + OwnerID string + OwnerName string + Title string + VertScrollState string + WindowBottom string + WindowLeft string + WindowRight string + WindowTop string + type OPML struct + Body Body + Head Head + Version string + XMLName xml.Name + func GetOPMLByURL(fileURL string) (*OPML, error) + func NewOPML(b []byte) (*OPML, error) + func (o OPML) GetFlattenOutlines() ([]Outline, error) + func (o OPML) XML() (string, error) + type Outline struct + Category string + Created string + Description string + HTMLURL string + IsBreakpoint string + IsComment string + Language string + Outlines []Outline + Text string + Title string + Type string + URL string + Version string + XMLURL string