Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/david-lev/CapsLockBot

🔠 Telegram bot to fix capslock messages
https://github.com/david-lev/CapsLockBot

bot capslock capslock-message pyrogram telegram-bot

Last synced: about 2 months ago
JSON representation

🔠 Telegram bot to fix capslock messages

Awesome Lists containing this project

README

        

# CapsLockBot Converter

### Telegram bot to convert CapsLock messages to their real language.

Everyone is probably familiar with the situation which a message is sent and finds that CapsLock mode was activated when typing and now the message appears in capital letters in English instead of the source language. The following bot solves this problem:
- Edit the 'capslock-message' and first type the bot user to go inline with the original message. Click on the window that will appear and you will receive the translated message.
- The bot is adapted for working in groups without the need to edit the message. Add the bot to the group with delted messages permission, replay to each 'CapsLock message' with the command `/caps` and the bot will respond with the converted message.

> You can check our bot [here](https://t.me/CapslockHEbot) (in Hebrew).

## configuration:
- Clone this repository:
```
git clone https://github.com/david-lev/CapsLockBot.git
```
- Install requirements (``pyrogram``, ``tgcrypto``):
```
pip3 install -U pyrogram tgcrypto
```
- Edit and insert the following values into the [config](/config.ini) file:
```
[pyrogram]
api_id = XXXXXXXXXXX
api_hash = XXXXXXXXXXXXXXXXXXXXXXXXXX
bot_token = XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

[telegram]
bot_username = YourBotUsername (Without @)
```
The ``api_id`` & ``api_hash`` You can get from [my.telegram.org](https://my.telegram.org).
``bot_token`` & ``bot_username`` you can get by creating a new bot on [BotFather](https://t.me/BotFather).
- Edit the [strings.py](/strings.py#5) file and change the caps values for the compatibility of your keyboard buttons.
- Run the bot:
```
python3 main.py
```
---
Created with ❤️ by [David Lev](https://t.me/davidlev) & [Yehuda By](https://t.me/M100achuzBots)