Download the PHP package wramirez83/telegram without Composer

On this page you can find all versions of the php package wramirez83/telegram. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package telegram

Telegram Bot API Library for Laravel 12

Librería PHP compatible con Laravel 12 para enviar mensajes y archivos a través de la API de Telegram Bot.

Requisitos

Instalación

Si estás usando Laravel, publica el archivo de configuración:

Configuración

Agrega las siguientes variables de entorno en tu archivo .env:

O configura en config/telegram.php:

Métodos Disponibles

Información del Bot

getMe()

Obtiene información básica sobre el bot.

Mensajes

sendMessage($message, $chatId = '', $mode = 'Markdown')

Envía un mensaje de texto a un chat.

Parámetros:

forwardMessage($chatId, $fromChatId, $messageId, $disableNotification = false)

Reenvía un mensaje de cualquier tipo.

Archivos y Medios

sendPhoto($file, $message = '', $chatId = '')

Envía una foto.

sendDocument($file, $message = '', $chatId = '')

Envía un documento.

sendAudio($audio, $caption = '', $chatId = '', $duration = null, $performer = null, $title = null)

Envía un archivo de audio.

sendVideo($video, $caption = '', $chatId = '', $duration = null, $width = null, $height = null)

Envía un video.

sendVoice($voice, $caption = '', $chatId = '', $duration = null)

Envía un mensaje de voz.

sendSticker($sticker, $chatId = '')

Envía un sticker (.webp).

Ubicación

sendLocation($latitude, $longitude, $chatId = '', $horizontalAccuracy = null, $livePeriod = null, $heading = null, $proximityAlertRadius = null)

Envía un punto en el mapa.

Acciones del Chat

sendChatAction($action, $chatId = '')

Indica al usuario que algo está pasando del lado del bot.

Acciones válidas:

Actualizaciones y Webhooks

getUpdate($offset = null, $limit = null, $timeout = null, $allowedUpdates = null)

Obtiene actualizaciones del bot.

setWebhook($url, $certificate = null, $ipAddress = null, $maxConnections = null, $allowedUpdates = null, $dropPendingUpdates = false, $secretToken = null)

Configura un webhook para recibir actualizaciones.

removeWebhook($dropPendingUpdates = false)

Elimina el webhook configurado.

Archivos

getFile($fileId)

Obtiene información sobre un archivo.

getFileUrl($fileId)

Obtiene la URL completa para descargar un archivo.

Perfil de Usuario

getUserProfilePhotos($userId, $offset = 0, $limit = 100)

Obtiene las fotos de perfil de un usuario.

Utilidades

curFile($routeFile)

Crea un objeto CURLFile para subir archivos.

Ejemplos Completos

Enviar mensaje con formato

Enviar múltiples archivos

Manejar actualizaciones

Compatibilidad con Laravel 12

Esta librería es completamente compatible con Laravel 12 y utiliza:

Referencias

Licencia

MIT

Autor

Wilson Ramirez Z - [email protected]


All versions of telegram with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/support Version ^12.0
illuminate/config Version ^12.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package wramirez83/telegram contains the following files

Loading the files please wait ...