https://github.com/mateodioev/rand-file
https://github.com/mateodioev/rand-file
bot telegram
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/mateodioev/rand-file
- Owner: Mateodioev
- Created: 2022-01-08T20:29:35.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-12-02T02:47:19.000Z (over 2 years ago)
- Last Synced: 2023-12-02T03:29:10.226Z (over 2 years ago)
- Topics: bot, telegram
- Language: PHP
- Homepage:
- Size: 35.2 KB
- Stars: 3
- Watchers: 0
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
Random file telegram bot 🤖
=======
[](https://www.codefactor.io/repository/github/mateodioev/rand-file)
Enviale un archivo y este te devolverá otro del mismo tipo
- [Archivos permitidos](#random-file-telegram-bot-support)
- Photos
- Stickers
- Audios
- Notas de voz
- Documentos
- Gifs
Obtener un token para el bot
--------
Valla a [@BotFather](https://t.me/BotFather) y escriba los siguientes comandos:
```
1. /newbot
2. Responda con un nombre para su bot
3. Escriba un username (@) para su bot, este debe terminar si o si en 'bot'
```
BotFather al final le devolvera un token
Instalar y ejecutar el bot
--------
Clona este repositorio
```bash
git clone https://github.com/Mateodioev/rand-file.git
cd rand-file
```
Ejecuta el bot
> Primero edita el archivo index.php con tu bot token
```bash
php index.php
```