Skip to content

stanislavNemch/password-generator-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Password Generator Bot GoIT

This is a simple Telegram bot that generates passwords of a specified length.

Technologies Used

  • Java
  • Maven
  • Telegram Bot API

How to Run the Bot

  1. Clone the repository:

    git clone <repository-url>

    Replace <repository-url> with the actual URL of the repository.

    cd

  2. 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_USERNAME with your bot's username and YOUR_BOT_TOKEN with your bot's token, which you can get from [BotFather](https.t.me/

  3. Run the main method in the org.example.Main class from your IDE.

How to Used the Bot in Telegram

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.

About

Password Generator Bot

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages