This guide will walk you through the process of setting up a Telegram bot
for guide in git go to gif
Before you begin, ensure you have the following:
- A Telegram account
- An internet connection
- Open the Telegram app.
- Search for the "BotFather" bot.
- Start a chat with BotFather by clicking on "Start".
- Use the
/newbot
command to create a new bot. - Follow the prompts to provide a name and username for your bot.
- Once the bot is created, BotFather will provide you with a token. Save this token, as you'll need it later.
- Open the Telegram app.
- Search for the User Info Bot by typing "@UserInfoBot" in the search bar.
- Start a chat with the User Info Bot by clicking on its name in the search results.
- Once the chat is opened, you can send any message to the bot.
- The User Info Bot will reply with information about your account, including your chat ID.
Create a config.json
file with your Telegram bot token and chat ID. Example:
{
"token": "YOUR_TELEGRAM_BOT_TOKEN",
"chat_id": "YOUR_CHAT_ID"
}
- Go to BotFather
- type
/setcommands
- select you bot
- now, Paste this following below text
start - Begin interaction
help - Get assistance
content - View project info
screen - Take a screenshot
jarvis - Execute a command
yo - Greet the user
press - Press keys
arrow - Use arrow keys
download - Download a file
cd - Change directory
ls - List files
blocker - Block input
note: via this you can see those commands on you bot command list which can make you life easier