https://github.com/17alma41/telegram_bot
Un bot de telegram
https://github.com/17alma41/telegram_bot
bot telegram-bot
Last synced: over 1 year ago
JSON representation
Un bot de telegram
- Host: GitHub
- URL: https://github.com/17alma41/telegram_bot
- Owner: 17alma41
- Created: 2024-12-02T08:14:32.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-12-02T09:42:26.000Z (over 1 year ago)
- Last Synced: 2025-02-09T22:12:55.768Z (over 1 year ago)
- Topics: bot, telegram-bot
- Language: Python
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Bot de telegram
## 1: Crear el bot de Telegram
1. Abre Telegram y busca el BotFather.
2. Usa el comando /newbot para crear un nuevo bot.
3. Sigue las instrucciones para darle un nombre y un nombre de usuario al bot.
4. Al finalizar, obtendrás un token que necesitarás para conectar tu bot a la API de Telegram.
## 2: Instalar la biblioteca
Abre una terminal y ejecuta el siguiente comando para instalar la biblioteca python-telegram-bot:
```bash
pip install python-telegram-bot
```
## 3: Ejecutar el bot
Abre una terminal y ejecuta lo siguiente:
```bash
python3 main.py
```
## 4: Probar el bot
Abre Telegram y busca tu bot usando el nombre de usuario que creaste.
Inicia una conversación con tu bot y usa los siguientes comandos:
/hola para recibir el mensaje "¡Hola Mundo!".
/numero para recibir un número aleatorio entre 1 y 100.