An open API service indexing awesome lists of open source software.

https://github.com/mateodioev/rand-file


https://github.com/mateodioev/rand-file

bot telegram

Last synced: 11 months ago
JSON representation

Awesome Lists containing this project

README

          

Random file telegram bot 🤖
=======
[![CodeFactor](https://www.codefactor.io/repository/github/mateodioev/rand-file/badge)](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
```