An open API service indexing awesome lists of open source software.

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

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.

![](https://github.com/Progovich/typescript-telegram-vkapi/blob/master/other/bot.png)

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 и размещает посты на стене сообщества. Подключена возможность постить видео и картинки.

![](https://github.com/Progovich/typescript-telegram-vkapi/blob/master/other/bot.png)

К боту подключена 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/