PHP Classes

PHP Telegram Bot Send Image or Random File: Telegram bot that responds by sending random files

Recommend this page to a friend!

  Author Author  
Picture of Mateo
Name: Mateo <contact>
Classes: 13 packages by
Country: Peru Peru
Age: ???
All time rank: 31979 in Peru Peru
Week rank: 65 Up1 in Peru Peru Up
Innovation award
Innovation award
Nominee: 4x


  Detailed description   Download Download .zip .tar.gz   Install with Composer Install with Composer  
This package implements a Telegram bot that responds by sending random files.

It provides a script and class files that can respond to requests sent to the script URL after registering it as Telegram bot Web hook.

The script can respond with a message with a file that can be of many types like images of photos, stickers, audio files, voice notes, documents, GIF images, etc..

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'

  Classes of Mateo  >  PHP Telegram Bot Send Image or Random File  >  Download Download .zip .tar.gz  >  Support forum Support forum  >  Blog Blog (1)  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
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
All time users: 97 users
All time rank: 9705
Week users: 0 users
Week rank: 189 Equal
 
  Groups   Rate classes User ratings   Applications   Files Files  

  Groups  
Group folder image PHP 5 Classes using PHP 5 specific features View top rated classes
Group folder image Web services Web data clipping, SOAP or XML-RPC clients and servers View top rated classes
Group folder image Audio Voice and music data generation and manipulation View top rated classes
Group folder image Chat Chating and instant messaging View top rated classes


  Innovation Award  
PHP Programming Innovation award nominee
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

  User ratings  
Not yet rated by the users

  Applications that use this package  
No pages of applications that use this class were specified.

Add link image If you know an application of this package, send a message to the author to add a link here.

  Files folder image Files  
File Role Description
Files folder imagesrc (2 directories)
Files folder imagevendor (1 file, 1 directory)
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file composer.lock Data Auxiliary data
Accessible without login Plain text file index.php Example Example script
Accessible without login Plain text file readme.md Doc. Documentation

  Files folder image Files  /  src  
File Role Description
Files folder imageConfig (3 files)
Files folder imageModels (1 file)

  Files folder image Files  /  src  /  Config  
File Role Description
  Plain text file Files.php Class Class source
  Plain text file Request.php Class Class source
  Plain text file StringUtils.php Class Class source

  Files folder image Files  /  src  /  Models  
File Role Description
  Plain text file Bot.php Class Class source

  Files folder image Files  /  vendor  
File Role Description
Files folder imagecomposer (10 files)
  Accessible without login Plain text file autoload.php Aux. Auxiliary script

  Files folder image Files  /  vendor  /  composer  
File Role Description
  Accessible without login Plain text file autoload_classmap.php Aux. Auxiliary script
  Accessible without login Plain text file autoload_namespaces.php Aux. Auxiliary script
  Accessible without login Plain text file autoload_psr4.php Aux. Auxiliary script
  Plain text file autoload_real.php Class Class source
  Plain text file autoload_static.php Class Class source
  Plain text file ClassLoader.php Class Class source
  Accessible without login Plain text file installed.json Data Auxiliary data
  Accessible without login Plain text file installed.php Aux. Auxiliary script
  Plain text file InstalledVersions.php Class Class source
  Accessible without login Plain text file LICENSE Lic. License text

Install with Composer Install with Composer - Download Download all files: rand-file.tar.gz rand-file.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.