Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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 1 month ago
JSON representation
🔠 Telegram bot to fix capslock messages
- Host: GitHub
- URL: https://github.com/david-lev/capslockbot
- Owner: david-lev
- Created: 2021-05-02T21:44:24.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-01-16T19:37:39.000Z (almost 3 years ago)
- Last Synced: 2024-08-04T09:06:44.624Z (3 months ago)
- Topics: bot, capslock, capslock-message, pyrogram, telegram-bot
- Language: Python
- Homepage: https://t.me/CapslockHEbot
- Size: 21.5 KB
- Stars: 10
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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)