https://github.com/ave-sergeev/teleqramer
Telegram bot + UrlShortener + QrGen (Scala, ZIO) (2024)
https://github.com/ave-sergeev/teleqramer
qrcode redis scala telegram zio2
Last synced: 4 months ago
JSON representation
Telegram bot + UrlShortener + QrGen (Scala, ZIO) (2024)
- Host: GitHub
- URL: https://github.com/ave-sergeev/teleqramer
- Owner: Ave-Sergeev
- Created: 2024-08-02T13:32:49.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-02-22T07:27:19.000Z (over 1 year ago)
- Last Synced: 2025-02-22T08:27:21.475Z (over 1 year ago)
- Topics: qrcode, redis, scala, telegram, zio2
- Language: Scala
- Homepage:
- Size: 26.4 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# TeleQRamer
[Русская версия](README.ru.md)
This project is a game project and should not be considered as a serious development.
It is presented in the form of `Telegram Bot` creating on request QR code and shortURL, as well as a server (HTTP) for redirect to the original URLs.
The service provides the functionality of:
1) QR code generation by provided URL (library [QRGen](https://github.com/kenglxn/QRGen) is used).
The default size of the generated JPG is 250x250 (can be changed in the service configuration).
2) Generation of shortURL for the provided URL. When using shortURL (following the link) a redirect to the original URL is performed.
Token is implemented on [ULID](https://github.com/ulid/spec). Token -> URL mapping is stored in Redis (SingleNode).
For low-load usage, this implementation is sufficient, and it will guarantee (conditionally) the uniqueness of the keys due to the ULID features.
P.S. Important clarification:
In reality, a completely different architecture and technologies will be used for a combat project.
Please do not take the game project seriously.
P.S. Don't forget to leave a ⭐ if you found this project useful.