Download the PHP package httd1/telegramphp without Composer

On this page you can find all versions of the php package httd1/telegramphp. 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 telegramphp

TelegramPhp

GitHub license GitHub stars

👌 Read this documentation in Portuguese here

This is a package for the Telegram Bots API.
This package was made exclusively for use with Webhook.
Before using this package, please read the entire Telegram Bot API documentation: https://core.telegram.org/bots/api

Requirements

Installation

Usage:

🔒 Secure

Telegram provides ways to verify if a request actually comes from its servers (read more here).
You can set a in your webhook, and Telegram will include this token in the X-Telegram-Bot-Api-Secret-Token header. This package allows you to validate your .

Handling Commands

Use the methods , or to catch and handle commands sent to your bot. Each method receives a callback or class method.

Some methods available:

, , , , , , , - User full name; - List of languages ID; , , - Media type, _photo, animation, audio, document, sticker, story, video, videonote, voice, contact, dice, game, poll, venue, location, invoice; , - Chat type, private, group, supergroup, channel; - Download a file, receive with paramether a return of and the file destination; - Set a token used in Webhook(_secrettoken) updates; - Checks the _secrettoken set on the the webhook.

Buttons:

Use the static Buttons class to create inline or reply keyboards.

, , , , ,, , ,

, , , ,

Message reactions

Telegram Bots can react to messages using simple emojis such as 👍, 👌, 🔥, 😍... or custom emojis.
You can see the all available reaction emoji here We have , an static class for reacting to messages.

Send files:

Download files

Logs

You can capture bot logs using , symple set one or more classes to catch all user logs.

Updates types

It's possible to execute a callback for a specific type of Updates sent by the Telegram API, for example, executing a callback to '_my_chatmember' or '_chatmember'.

🔥 Share your project made with this class, your project could be featured here!

• J.M


All versions of telegramphp with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0
ext-curl Version *
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 httd1/telegramphp contains the following files

Loading the files please wait ....