Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/namila007/a-telegram-bot

A simple telegram bot. For cat pics, send a msg to '@RandCatPicsBot' on TG
https://github.com/namila007/a-telegram-bot

cat cat-pics filters heroku telegram telegram-bot

Last synced: 27 days ago
JSON representation

A simple telegram bot. For cat pics, send a msg to '@RandCatPicsBot' on TG

Awesome Lists containing this project

README

        

# Telegram-Bot

Testing telegram bot for fun

## How to Run

1. Create a `.env` file and copy content from `.env.example`
2. Place your **Telegram App Token** value in `BOT_TOKEN` variable, `APP_URL`
3. Use `FILTER_ENABLED=true` to enable filters, else keep it null
4. Run `npm run start`

## Commands

### Chat Filter (Auto responses)

1. Start bot
`/start`

2. Creates a filter. (ie: /mkfilter Hello world )
`/mkfilter <..Responses>`

3. Remove a filter
`/rmfilter `

4. Show available filters
`/shfilters`

5. Remove all filters ( Group Admins only)
`/rmfilters`

and the most important one :)

### Cat Pics

`/cat` - sends a random cat picture