The Java Telegram Translation Bot with Azure Text Translation is a versatile and user-friendly bot designed to facilitate real-time language translation within Telegram. This bot leverages the power of Azure Text Translation services to provide seamless multilingual communication between users.
- Language Support: Translate messages and captions to and from over 100 languages.
- Auto Language Detection: Automatically detects the source language, making translation effortless.
- Chat Compatibility: Works seamlessly in both private and group chats.
- Channel Translation: Translate messages and captions in channels (requires admin permissions).
- Formatting Preservation: Preserves the original formatting of the text.
Telegram Translation Bot leverages several powerful technologies and frameworks to provide a robust and efficient translation solution:
Spring Boot: A widely-used Java framework for creating production-grade Spring-based applications, offering features like auto-configuration and embedded servers.
Spring Cloud: A collection of tools and frameworks for simplifying the development of distributed systems, including service discovery and configuration management.
Mockito: A Java testing framework for creating mock objects, facilitating clean and readable unit tests.
PostgreSQL: A robust open-source relational database management system known for its reliability and performance.
Lombok: A Java library that reduces boilerplate code with annotations for common tasks like getters, setters, and constructors.
H2: An open-source in-memory database known for its speed and small footprint.
Spring Data JPA: Part of the Spring Data family, it simplifies JPA-based repository implementation.
Azure AI Text Translation: Microsoft Azure's cloud-based machine translation service, offering fast and accurate translations.
MongoDB: A popular NoSQL document-oriented database known for its flexibility and scalability.
TelegramBotAPI: Streamlines Telegram bot creation with Spring Boot, offering webhook registration and message handling.
To start using the Telegram Translation Bot, follow these steps:
- Clone this repository.
- Configure your environment and dependencies.
- 2.1 Register azure text transaltor
- 2.2 Register telegram bot
- 2.3 Integrate registered APIs with this project through environment variables
- Build and run the project.