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:
2026-03-10 10:54:47 +03:30
parent 6ce4236dc5
commit e4877ce0d0
8 changed files with 92 additions and 73 deletions
+4 -5
View File
@@ -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