Skip to content

A telegram bot that sends puppy images to a telegram user and channel

License

Notifications You must be signed in to change notification settings

JoseRodrigues443/puppy-sender-telegram

Repository files navigation

Puppy Sender Telegram

A telegram bot that sends puppy images to a telegram user and channel.

How It works

First we can ask for the bot for help:

As seen in this image

Then we can say puppiesto get a random image from the puppies subreddit.

As seen in this image

Also we can request images from specific a subReddit (use this for good, not evil)...

As seen in this image

You can request to bot to get out of the project with the /quitcommand:

As seen in this image

How to Setup

Get bot token

Edit .ENV file and replace BOT_TOKEN=INSERT_TOKEN with the new token

Create a group with the admins

Add bot to a group (this group will be used to receive the student requests)

Like this

- Make the request in the browser https://api.telegram.org/bot<INSERT_TOKEN>/getUpdates and replace the INSERT_TOKEN with the bot token

The received json will be, get the chat id:

{
    "ok": true,
    "result": [
        {
            "message": {
                "message_id": 144,
                "chat": {
                    "id": -121432131321,                   // <-------  COPY THIS ID
                    "title": "GROUP NAME",
                    "type": "group",
                    "all_members_are_administrators": true
                }
            }
        }
    ]
}

Replace on .ENV file CHAT_ID=INSERT_ID_HERE

    cp .example.env .env
    vim .env

Then run it with

    npm install
    make dev
    # Open telegram chat

Deploy

Please see documentation in the page install Page..

About

A telegram bot that sends puppy images to a telegram user and channel

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •