Skip to content

Latest commit

 

History

History
88 lines (59 loc) · 3.18 KB

README.md

File metadata and controls

88 lines (59 loc) · 3.18 KB

Sosanie Ebla Bot Premium™

алёна (флирт) снова в деле, сучки!

Copyright / Idea

Original idea by @hatkidchan.

I have received a permission from the original author to use the name and the idea.

What in the World Is This?

Combining the power of premium text-to-speech models from the likes of Yandex and Tinkoff with the power of Telegram, this bot allows you to send voice messages to your friends and family with the voice of your choice.

But Why?

It's fun.
Unfortunatelly, it is not practical.

How to Use

Warnings / Precautions

Regarding the Code

It's probably not the prettiest code you've ever seen.
It's probably not the most efficient code you've ever seen.
It's probably not the most secure code you've ever seen.
It's probably not the most well-documented code you've ever seen.
It probably has not the prettiest logging you've ever seen.

Regarding the API

Tinkoff
Yandex
SberBank
NovelAI

Host Yourself

Docker

With the provided Dockerfiles and docker-compose.yml (or prebuilt amd64 images as specified in docker-compose.yml), you can easily deploy the bot.

  1. Clone the repository;
  2. Fill out the environment variables, as specified below (requires paid and moderated API keys for several services);
  3. docker compose up -d;
  4. Enjoy!

Use the Official Bot

@sseblopremiumbot
Currently there are no limitations are applied to the bot (number of requests and so on), however manual addition to the bot's whitelist is required via contacting the contact information specified in the bot's profile.

Internal Structure

Environment Variables

Variable Description
DB_MONGODB_USERNAME MongoDB username
DB_MONGODB_PASSWORD MongoDB username
DB_MONGODB_DATABASE Default initializable databse
DB_PATH_VOLUME Host path for database persistent files
TINKOFF_VOICEKIT_APIKEY API key generated in VoiceKit console
TINKOFF_VOICEKIT_SECRETKEY API secret key generated in VoiceKit console
TINKOFF_VOICEKIT_ENDPOINTAPI Tinkoff's AI API endpoint
YANDEX_SPEECHKIT_FOLDERID Yandex.Cloud account folder ID
YANDEX_SPEECHKIT_APITOKEN Generated static main API token for a given Yandex.Cloud account
VPRW_API_KEY API key used for bot authentication and API communication
VPRW_API_ENDPOINT Endpoint value (FQDN)
SBERBANK_SALUTESPEECH_ENDPOINTAPI SberBank's SaluteSpeech API endpoint for TTS
API_CONTACT_EMAIL Contact e-mail displayed in the docs
DB_MONGODB_URI MongoDB URI for authentication
VOICEMESSAGES_PATH_VOLUME Host path for voice-messages storage
TELEGRAM_API_ID Telegram API ID generated in the Telegram.API console
TELEGRAM_API_HASH Telegram API hash generated in the Telegram.API console
TELEGRAM_BOT_TOKEN Telegram bot token
BOT_CONTACT_USERNAME Contact username displayed in the contact information

Bot

API

Database