This project demonstrates some key capabilities of the GramJS library. It implements both the Bot and Client modes using MTProxy without relying on webhooks..
- Bot and Client Functionality: Implements both bot and client functionalities using GramJS.
- MTProxy Support: Leverages MTProxy for enhanced privacy and performance.
- Hook-less Implementation: The project is implemented without webhooks, offering a simpler approach.
- Clone the repository:
git clone https://github.com/rezavar/telegram-bot-news-channel.git
- Install dependencies:
npm i
- Configure your credentials: Replace your config in ./src/config/main-local.js:
export const API_ID = Your_API_ID;
export const API_HASH = Your_API_HASH;
export const BOT_TOKEN = Your_BOT_TOKEN;
- Run the bot :
node news_channel.js
- Add channels and moderators: Use the bot's commands to add channels to monitor and assign moderators.
- News aggregation: The bot continuously monitors the added channels for new posts.
- Moderation: Moderators receive the aggregated news in a group and can approve or reject items using inline buttons.
- Publication: Approved news is automatically forwarded to the designated publication channel.