Skip to content

This is a Telegram bot designed to filtering spam messages.

License

Notifications You must be signed in to change notification settings

arthurgubaidullin/alga-bot

Repository files navigation

This is a Telegram bot designed to filtering spam messages.

Getting Started

First, run the development server:

npm run dev
# or
yarn dev

Open http://localhost:3000 with your browser to see the result.

The pages/api directory is mapped to /api/*. Files in this directory are treated as API routes instead of React pages.

Edit spam patterns

You can start editing the spam patterns regexp by modifying src/spamPatterns.ts.

Before deploy

See .env.example file what enviroment variables to set up need.

Deploy on Netlify

This project uses @netlify/plugin-nextjs plugin.

Just add the new site in netlify dashboard from your git repository.

Check out our Next.js deployment documentation for more details.

After deploy

For the bot to work, you need to set a webhook, for this you can call the following command:

curl https://{HOST}/api/{TELEGRAM_BOT_TOKEN}/setup

Where: {HOST} equals to your enviroment variable HOST value and {TELEGRAM_BOT_TOKEN} equals to your enviroment variable TELEGRAM_BOT_TOKEN value.

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

About

This is a Telegram bot designed to filtering spam messages.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published