Нема описа

Andrew Druzhinin 498baaacd3 init project пре 2 година
bin 498baaacd3 init project пре 2 година
lib 498baaacd3 init project пре 2 година
.env.sample 498baaacd3 init project пре 2 година
.gitignore 498baaacd3 init project пре 2 година
.rubocop.yml 498baaacd3 init project пре 2 година
Dockerfile 498baaacd3 init project пре 2 година
Gemfile 498baaacd3 init project пре 2 година
Gemfile.lock 498baaacd3 init project пре 2 година
Makefile 498baaacd3 init project пре 2 година
README.md 498baaacd3 init project пре 2 година

README.md

Telegram bot + Yandex Speechkit

The bot listens for messages and responds to voice messages by transcribing the message using Yandex SpeechKit.

How to

Create a file named .env in the project directory and set the following environment variables:

  TELEGRAM_BOT_TOKEN=<your telegram bot token>
  YANDEX_SPEECHKIT_API_KEY=<your Yandex SpeechKit API key>
  AWS_ACCESS_KEY_ID=<your AWS access key ID>
  AWS_SECRET_ACCESS_KEY=<your AWS secret access key>
  AWS_BUCKET=<your AWS S3 bucket name>
  • You need create a Yandex Cloud account at https://cloud.yandex.com.
  • Go to the Telegram website or use the Telegram mobile app and create a new bot by messaging the "BotFather" account and follow the instructions to obtain the bot token.

To build the Docker image, run the following command:

  make build

To start the bot container, run the following command:

  make start

To view the logs of the bot container, run the following command:

  make logs