Telegram bot for YouTube (YouTube API + OAuth 2.0)
Implemented a Telegram bot that automatically finds new videos on a selected YouTube channel and posts the first comment immediately after the video is released. User authorization is done via Google OAuth 2.0, which provides secure access to the YouTube API.
The bot includes:
- channel selection and comment text directly in Telegram;
- support for different pricing plans (Basic, Medium);
- automatic token renewal and handling of YouTube API quotas;
- a stable architecture with logging, queues, and retries.
The development was carried out using Node.js, TypeScript, Telegraf.js, Axios, Express, Google APIs SDK. The architecture is built on the principle of modularity, which simplifies scaling and further maintenance.
The bot operates stably, provides quick responses to new publications, and allows for the automation of content promotion through comments.
The bot includes:
- channel selection and comment text directly in Telegram;
- support for different pricing plans (Basic, Medium);
- automatic token renewal and handling of YouTube API quotas;
- a stable architecture with logging, queues, and retries.
The development was carried out using Node.js, TypeScript, Telegraf.js, Axios, Express, Google APIs SDK. The architecture is built on the principle of modularity, which simplifies scaling and further maintenance.
The bot operates stably, provides quick responses to new publications, and allows for the automation of content promotion through comments.