This is a Java Telegram bot repository using the Telegram Bot API.
This repository contains a Java-based Telegram bot that utilizes the Telegram Bot API. It allows you to create and manage a bot on the Telegram platform using the Telegram BotFather.
To use this bot, follow these steps:
- Clone or download this repository to your local machine.
- Register a new bot on Telegram using the BotFather. You will receive a token for your bot.
- Open the project in your preferred Java IDE.
- Replace the
SET-BOT-TOKEN
placeholder in the MyFirstTelegramBot.java with your actual bot token. - Replace the
SET-BOT-NAME
placeholder in the MyFirstTelegramBot.java with your actual bot name. - Compile and run the Java application.
- Start chatting with your bot on Telegram!
Once you have downloaded the project and replaced the bot token, follow these steps to run the bot:
- Open the project in your Java IDE.
- Compile the project to ensure there are no errors. (Only SLF4J warning, no logs)
- Run the main Java class to start the bot. (MyFirstTelegramBot.java)
- Your bot should now be active on Telegram. You can interact with it through the Telegram app.
Enjoy using your Telegram bot! If you have any questions or issues, feel free to open an issue in this repository.