https://github.com/alekssamos/svrusoundbot
Telegram bot for the voice of the Swedish-Russian dictionary from the docx table
https://github.com/alekssamos/svrusoundbot
pyrogram-bot pyrogram-telegram-bot telegram-bot
Last synced: 4 months ago
JSON representation
Telegram bot for the voice of the Swedish-Russian dictionary from the docx table
- Host: GitHub
- URL: https://github.com/alekssamos/svrusoundbot
- Owner: alekssamos
- Created: 2022-10-01T18:45:57.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-08-09T18:29:32.000Z (almost 2 years ago)
- Last Synced: 2025-01-11T16:27:33.971Z (5 months ago)
- Topics: pyrogram-bot, pyrogram-telegram-bot, telegram-bot
- Language: Python
- Homepage: https://t.me/svrusoundbot
- Size: 43.9 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# svrusoundbot
Telegram bot for the voice of the Swedish-Russian dictionary from the docx tableMade at the request of a man named Stark.
Available here: [@svrusoundbot](https://t.me/svrusoundbot).
## How to deploy on your server?
There are already compiled executable independent files for [Windows x86](https://github.com/alekssamos/svrusoundbot/releases/download/v1.4/svrusoundbot.exe) and [Linux x64](https://github.com/alekssamos/svrusoundbot/releases/download/v1.4/svrusoundbot).
If the file does not run on some Linux systems, do this before starting:
```bash
export TMPDIR=./tmp; mkdir -p $TMPDIR
```Otherwise
Python must be installed on your system.Tested on Python versions 3.8 - 3.11
Launch via docker is also available
### Get the bot source
#### from github:
```bash
git clone https://github.com/alekssamos/svrusoundbot
cd svrusoundbot```
create a python virtual environment
```bash
python -m venv venv
# or
python3 -m venv venv
```install dependencies
on windows:
```bat
venv\Scripts\python -m pip install -r requirements.txt
```on linux:
```bash
venv/bin/python -m pip install -r requirements.txt
```
#### or from docker container:
```bash
docker pull ghcr.io/alekssamos/svrusoundbot:v1.4
```
### Configuration
* Get bot token from https://t.me/BotFather
* Get your own Telegram API key from https://my.telegram.org/apps
* rename `.env.example` to `.env` and edit by filling in the values
### Launch it
#### Directly
on windows:
```bat
venv\Scripts\python svrusoundbot.py
```
on linux:```bash
venv/bin/python svrusoundbot.py
```
#### through docker
```bash
docker run --env-file .env ghcr.io/alekssamos/svrusoundbot:v1.4
```Everything is ready!