mirror of
https://github.com/mmahdium/TGSS.git
synced 2026-08-14 17:52:49 +03:30
feat: improve RSS output and auth flow
- Add proper XML headers, content type, and marshaling for RSS - Conditionally expose auth endpoints based on Telegram auth state - Add device model to Telegram client config - Improve logging and caching behavior in auth service
This commit is contained in:
@@ -55,13 +55,12 @@ func (r *RSSGenerator) GenerateFeed(items []tg.MessageClass, channelId string) *
|
||||
nowStr := time.Now().Format("Mon, 02 Jan 2006 15:04 MST")
|
||||
|
||||
rssChannel := &RSSChannel{
|
||||
Title: "Recent posts from @" + channelId,
|
||||
Link: "https://t.me/" + channelId,
|
||||
Description: "This feed contains the most recent posts from the Telegram channel @" + channelId + ". " +
|
||||
"Stay updated with the latest news and updates from the channel.",
|
||||
Title: "Recent posts from @" + channelId,
|
||||
Link: "https://t.me/" + channelId,
|
||||
Description: "Recent posts from the Telegram channel @" + channelId + ".",
|
||||
PubDate: nowStr,
|
||||
LastBuildDate: nowStr,
|
||||
Generator: "Telegram RSS Generator",
|
||||
Generator: "TGSS",
|
||||
}
|
||||
|
||||
errorCount := 0
|
||||
|
||||
Reference in New Issue
Block a user