silverbryan / mercadolibre-bot

Telegram Bot that uses Telegram Bot Api, telegraf.js, Nodejs, Azure Functions, Try it now πŸ‘‡

Home Page:https://t.me/mercadolibreXBot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Running Locally

  • Install Dependecies: npm install
  • Run Bot: npm run start:dev

Set Environment Variables Locally

File: .env

ENVIRONMENT=DEVELOPMENT
PATH_URL=api.mercadolibre.com
BOT_TOKEN=8888888888:xxxxxxxxxxxxxxx// PRODUCTION
BOT_TOKEN_DEV=8888888888:xxxxxxxxxxxxxxx // DEVELOPMENT
APP_URL=<https://<your-app-name>.azurewebsites.net/api/<your-api-name>?code=<your-api-function-key>> // Isn't required in development environment 

How To Get a Telegram Bot Token

Find telegram bot named "@botfarther", he will help you with creating and managing your Bot.

Automatic Deployments

AZURE_FUNCTIONAPP_NAME: <your azure function app name>
AZURE_FUNCTIONAPP_PUBLISH_PROFILE: <your github secret>
NODE_VERSION: '14.x' <default>

About

Telegram Bot that uses Telegram Bot Api, telegraf.js, Nodejs, Azure Functions, Try it now πŸ‘‡

https://t.me/mercadolibreXBot

License:MIT License


Languages

Language:JavaScript 94.8%Language:Shell 5.2%