Skip to content

michelkaporin/voices-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Telegram Bot for Inline Voice Message Sending

This bot produces Telegram inline query results based on loaded voice messages.

Features:

  • Load predefined set of your .OGG voice messages
  • Add voice messages during bot's runtime through bot interaction
    • Limited to configured username list of admins

Setup and Configuration

Pre-requisites

  • Node.js 13.7.0+

Configuration

Consult sample folder for bot configuration example.

  1. Add .env file to the root of the project with your Telegram HTTP API Token
TELEGRAM_BOT_TOKEN=your_telegram_token
  1. Add .config file to the assets folder with Telegram list of usernames for admins and botChatId for ID of bot's own chat. This will be used for saving voice messages upload from your bot's machine.
  2. Add telegram_voice_map.json and local_voice_map.json to the assets folder. Populate local_voice_map.json, if you have any voices to be uploaded (add .OGG files under assets/voices folder).

Start Bot

yarn && yarn start