Download the PHP package rmscms/telegram without Composer

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

RMS Telegram Package for Laravel

A robust and fluent Telegram integration package for Laravel applications, built on top of irazasyed/telegram-bot-sdk. This package provides a chainable interface to interact with Telegram's API, enabling seamless sending of messages, photos, documents, media groups, and managing messages in Telegram channels.

Features

Installation

  1. Install the Package

    Add the package to your Laravel project via Composer:

  2. Publish Configuration

    Publish the configuration file to your project:

    This creates a config/telegram.php file in your Laravel project.

  3. Configure Environment

    Add the following to your .env file:

    Ensure your bot is an admin in the specified channel.

Configuration

The config/telegram.php file contains:

Usage

The package uses a fluent, chainable interface for interacting with Telegram. Below are examples for each feature.

1. Sending a Text Message

2. Sending a Photo

Photos are loaded from Laravel's Storage disk (e.g., public). Ensure the file exists in storage/app/public.

3. Sending a Document

Documents are loaded from storage/app/public.

4. Sending a Media Group

Send multiple photos or videos in one message using MediaGroup.

5. Updating a Message or Caption

Update a text message or media caption using message_id.

6. Deleting a Message

Delete a message using message_id.

7. Pinning a Message

Pin a message in a channel using message_id.

8. Using Parse Modes

Supports HTML, MarkdownV2, and Markdown (legacy) parse modes. Default is HTML.

9. Creating Custom Keyboards

Use Keyboard and Button classes to create inline or reply keyboards.

Storage Configuration

The package uses Laravel's Storage for file handling. Ensure your config/filesystems.php has a public disk:

Place files in storage/app/public (e.g., images/photo.jpg, documents/file.pdf, videos/video.mp4).

Testing

The package includes a powerful Artisan command to validate all features:

Test Command Details

The telegram:test command executes a comprehensive suite of tests to verify the package's functionality:

The command automatically:

Note: For the Send Media Group test, ensure a valid MP4 file is placed in storage/app/public/videos/test.mp4 (e.g., download from https://sample-videos.com). The command preserves existing files to avoid overwriting.

To run unit tests:

Contributing

Contributions are welcome! Please submit issues or pull requests to the GitHub repository.

License

This package is open-sourced under the MIT License.


All versions of telegram with dependencies

PHP Build Version
Package Version
Requires irazasyed/telegram-bot-sdk Version ^3.15
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 rmscms/telegram contains the following files

Loading the files please wait ...