Details
Random file telegram bot ?
Enviale un archivo y este te devolverá otro del mismo tipo
Obtener un token para el bot
Valla a @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
Setwebhook
$endpoint = 'https://api.telegram.org/bot`BOT_TOKEN`/'
$method = 'setwebhook'
$params = url=dominio.donde.esta.hosteado.su.bot.com
Con cURL
$ curl 'https://api.telegram.org/botBOT_TOKEN/setwebhook?url=dominio.com/path_a_su_archivo'
|
Name: |
PHP Telegram Bot Send Image or Random File |
Base name: |
rand-file |
Description: |
Telegram bot that responds by sending random files |
Version: |
1.0.0 |
PHP version: |
5 |
License: |
MIT/X Consortium License |
|
|
March 2022
Number 4 |
Telegram is an application that became popular as an alternative to other traditional chat applications.
Telegram allows the creation of robots that can respond automatically to messages sent to bot users.
This package implements a Telegram chatbot that can send messages to respond to chat messages.
Manuel Lemos |
|
Applications that use this package |
|
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.
|
Files |
|
File |
Role |
Description |
Bot.php |
Class |
Class source |