Telegram bot with actual TORN price
Go to file
2023-12-08 05:32:54 -08:00
.env.example Get price from Uniswap V2 and rewrite to TypeScript 2023-12-08 05:28:23 -08:00
.gitignore Get price from Uniswap V2 and rewrite to TypeScript 2023-12-08 05:28:23 -08:00
index.ts Get price from Uniswap V2 and rewrite to TypeScript 2023-12-08 05:28:23 -08:00
package.json Get price from Uniswap V2 and rewrite to TypeScript 2023-12-08 05:28:23 -08:00
README.md Get price from Uniswap V2 and rewrite to TypeScript 2023-12-08 05:28:23 -08:00
utils.ts Get price from Uniswap V2 and rewrite to TypeScript 2023-12-08 05:28:23 -08:00

Startup on your own server

  1. Create telegram bot using @BotFather and get token;
  2. Create telegram public channel, add a bot to it and give him admin rights (At least, Post messages permission);
  3. Copy .env.example file content to .env;
  4. Fill in .env file BOT_TOKEN value with a string containing your telegram bot token;
  5. Replace in .env file TELEGRAM_CHANNEL_NAME value with a string containing inner telegram link to your public channel (for example, @torn_prices);
  6. Replace in .env file MAINNET_RPC_URL value, if default RPC doesn't work;
  7. Install dependencies: npm i
  8. Start script in the background: npm run start