Skip to content

telegram bot read message from channels and send to my channel

Notifications You must be signed in to change notification settings

rezavar/telegram-bot-news-channel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GramJS Sample Project

This project demonstrates some key capabilities of the GramJS library. It implements both the Bot and Client modes using MTProxy without relying on webhooks..

Features:

  • 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.

Getting Started:

  1. Clone the repository: 
git clone https://github.com/rezavar/telegram-bot-news-channel.git
  1. Install dependencies: 
npm i
  1. 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;
  1. Run the bot : 
node news_channel.js

How it works:

  • 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.

About

telegram bot read message from channels and send to my channel

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published