πŸ‘©β€πŸ’»How to Run This Bot in Local

Penduhulan

AutoForwards Bot is an open source project, anyone can develop it further, but before trying to develop it, it is good to know how to run this bot and how it works.

circle-info

Note: Before doing Clone there are several software that you must prepare, here is the software.

Tutorial Run in Local

Step 1 - Clone this project / Download this project

  • Before cloning, you must have git, you can get it herearrow-up-right.

  • If you have opened the project pagearrow-up-right. Then click the <> Code button and copy the Project HTTPS link, as shown below

  • If so, you can open the git software, which you have installed before, then type git clone <THE GIT LINK YOU COPIED> if so press enter.

  • still in the git software, type cd TelegramBot-AutoForward, and press enter

  • if you have downloaded and installed NodeJSarrow-up-right, the next step you can type in the git software, npm i and press enter. Wait for it to finish

  • Finish

    Git software, clone project and install nodejs package

Step 2 - Prepare .env

.envarrow-up-right is the development environment needed to run this TelegramBot-AutoForward project, previously we have prepared the .envarrow-up-right file, just fill in the values

  • Open the .env file, which is located in the TelegramBot-AutoForward folder (which you have cloned)

  • there are several keys that must be filled with value

circle-info

Note: to fill in the key, you can follow the tabs menu below.

NODE_ENV= <Fill in the development>

BOT_TOKEN= <obtained from BotFatherarrow-up-right, on telegram>

APPID= <obtained from mytelegramarrow-up-right>

APPHASH=<obtained from mytelegramarrow-up-right>

  • fill in your phone-number in the form provided by telegram, if so click next.

  • You will be asked to enter a confirmation code, you can check your telegram, the code sent by the telegram, and paste it on the form provided, if so, press sign in.

  • Click API development tools.

  • yey πŸ™Œ You can copy the App api_id and App api_hash columns, don't forget to fill in the App title and short name according to the bot you created..

  • If you have gotten all the codes and tokens, then fill in the .env file, according to the required values

  • Finish, YEY ✨

Step 3 - Running Bot

Once everything is ready, you just need to open cmd / git, then run npm run dev, finished you can use every command on the bot, if there are bugs please write to issue dalam githubarrow-up-right

Last updated