Before you can make a Telegram bot, you must have a Telegram user account. If you don't already have an account, go to Telegram and create one. Search for BotFather (a bot that controls all other Telegram bots) after logging in, then launch a new conversation with it. To register a new bot with the BotFather, take the actions listed below:
1. Type /start and press send.
2. Type /newbot and press send.
3. Choose a name for your bot.
4. Choose a username for your bot that ends in "bot".
The BotFather will reply by sending you a message containing the access key for your freshly created bot. This access token will allow our application to interact with the Telegram API and provide instructions to our bot on how to respond to different user messages. The bot will respond to /start and echo any messages you send it.
pip install -r requirements.txt
python Bot.py
- Open Telegram
- Search @ botfather
- Type /newbot
- Please choose a name for your bot
- Now let’s choose a username for your bot. It must end in "bot".
- Use this token to access the HTTP API:
TOKEN. Paste into the code
✨ I’m Sufyan bin Uzayr, an open-source developer passionate about building and sharing meaningful projects. You can learn more about me and my work at sufyanism.com or connect with me on Linkedin
🚀 Explore courses and resources in coding, tech, and development at zeba.academy and code.zeba.academy. Empower yourself with practical skills through curated tutorials, real-world projects, and hands-on experience. Level up your tech game today! 💻✨
Zeba Academy is a learning platform dedicated to coding, technology, and development.
➡ Visit our main site: zeba.academy
➡ Explore hands-on courses and resources at: code.zeba.academy
➡ Check out our YouTube for more tutorials: zeba.academy
➡ Follow us on Instagram: zeba.academy
Thank you for visiting!