This is a simple Telegram bot that generates passwords of a specified length.
- Java
- Maven
- Telegram Bot API
-
Clone the repository:
git clone <repository-url>
Replace
<repository-url>with the actual URL of the repository.cd
-
In the main files of the java project, set
public String getBotUsername() { return "YOUR_BOT_USERNAME"; } public String getBotToken() { return "YOUR_BOT_TOKEN"; }Replace
YOUR_BOT_USERNAMEwith your bot's username andYOUR_BOT_TOKENwith your bot's token, which you can get from [BotFather](https.t.me/ -
Run the
mainmethod in theorg.example.Mainclass from your IDE.
Type /len to set the password length and /generate to generate a password.
Note: You will need to create your own Telegram bot and get a token from the BotFather. Replace the placeholder token in src/main/java/PasswordGeneratorBotStas.java with your own token.