https://github.com/portrunban/typescript-telegram-vkapi
Telegram bot on TypeScript, Telegraf with VKAPI
https://github.com/portrunban/typescript-telegram-vkapi
js nodejs telegraf telegram typescript vkapi
Last synced: 8 months ago
JSON representation
Telegram bot on TypeScript, Telegraf with VKAPI
- Host: GitHub
- URL: https://github.com/portrunban/typescript-telegram-vkapi
- Owner: portrunban
- Created: 2021-06-13T14:02:19.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-06-16T13:43:20.000Z (over 4 years ago)
- Last Synced: 2025-01-02T16:56:16.695Z (9 months ago)
- Topics: js, nodejs, telegraf, telegram, typescript, vkapi
- Language: TypeScript
- Homepage:
- Size: 32.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
Telegram Bot with VK API & Telegraf & TypeScript 👋
# EN
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.## Start
To start the bot, open `start.bat`
OR
Open the terminal in the folder with the bot and enter the commands
```sh
npm i
npm run start
```You must have the Node Js platform installed to work
https://nodejs.org/en/# RU
Добро пожаловать в мой реопзиторий телеграмм бота. Этот бот написан с использованием библиотек 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
Для запуска необходимо открыть `start.bat`
ИЛИ открыть консоль и ввести последовательно команды
```sh
npm i
npm run start
```Для работы у вас должна быть установлена платформа Node Js
https://nodejs.org/en/