Welcome to my Telegram bot repository. Here I use npm Telegraf and TypeScript to easily create the Telegram Bot on Node JS.
The bot has a connected vk.com API, it can sent video or photo to social group and post on wall.
The bot uses Mongo DB. You need a token to connect to the database.
You should edit the .env file before you start
TOKEN_TG
- Your telegrambot token
TOKEN_MONGO
- Your mongoDB token
TOKEN_VK
- Your vkAPI token for control social group
USERS
- Telegram id of users who have access to the bot
ID_GROUP
- ID your group.
To start the bot, open start.bat
OR
Open the terminal in the folder with the bot and enter the commands
npm i
npm run start
You must have the Node Js platform installed to work https://nodejs.org/en/
Добро пожаловать в мой реопзиторий телеграмм бота. Этот бот написан с использованием библиотек Telegraf и TypeScript. Бот работает с API VK и размещает посты на стене сообщества. Подключена возможность постить видео и картинки.
К боту подключена MongoDB. Вам понадобится токен для использования этого бота. Перед началом нужно отредактировать .env файл.
TOKEN_TG
- Your telegrambot token
TOKEN_MONGO
- Your mongoDB token
TOKEN_VK
- Your vkAPI token for control social group
USERS
- Telegram id of users who have access to the bot
ID_GROUP
- ID your group.
Для запуска необходимо открыть start.bat
ИЛИ открыть консоль и ввести последовательно команды
npm i
npm run start
Для работы у вас должна быть установлена платформа Node Js https://nodejs.org/en/