feat: P7 polls + P8 hashtags

P7 — Опросы в Telegram:
- routes/polls.js: POST /api/channels/:id/poll (sendPoll + schedule support)
- DB: scheduled_posts.post_type + meta для отложенных опросов
- scheduledPostsRunner: обработка post_type='poll' через sendPoll
- index.js: роут /api/channels подключён

P8 — Хештеги:
- ai.js: generateHashtags() через Claude Haiku, JSON-массив тегов
- routes/generate.js: POST /api/generate/hashtags
This commit is contained in:
Ник (Claude)
2026-06-11 19:54:31 +03:00
parent 0a9d886435
commit 6e32241fe8
5 changed files with 170 additions and 2 deletions
+1
View File
@@ -101,6 +101,7 @@ app.use('/api/calendar', calendarRoutes);
app.use('/api/metrics', metricsRoutes);
app.use('/api/usage', usageRoutes);
app.use('/api/billing', require('./src/routes/billing'));
app.use('/api/channels', require('./src/routes/polls'));
app.get('/health', (req, res) => {
res.json({ ok: true, service: 'zeropost-engine', time: new Date() });