Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lambq/laravel-madeline-proto
laravel madeline
https://github.com/lambq/laravel-madeline-proto
Last synced: about 2 months ago
JSON representation
laravel madeline
- Host: GitHub
- URL: https://github.com/lambq/laravel-madeline-proto
- Owner: lambq
- License: agpl-3.0
- Created: 2024-01-21T10:30:32.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-01-23T03:37:25.000Z (11 months ago)
- Last Synced: 2024-10-01T01:58:49.199Z (3 months ago)
- Language: PHP
- Size: 26.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Laravel MadelineProto
[![Latest Stable Version](https://poser.pugx.org/setiawanhu/laravel-madeline-proto/v)](//packagist.org/packages/setiawanhu/laravel-madeline-proto)
[![Total Downloads](https://poser.pugx.org/setiawanhu/laravel-madeline-proto/downloads)](//packagist.org/packages/setiawanhu/laravel-madeline-proto)
[![License](https://poser.pugx.org/setiawanhu/laravel-madeline-proto/license)](//packagist.org/packages/setiawanhu/laravel-madeline-proto)A third party Telegram client library [danog/MadelineProto](https://github.com/danog/MadelineProto) wrapper for Laravel.
# Notes:
This is a forked package from [setiawanhu/laravel-madeline-proto](https://github.com/setiawanhu/laravel-madeline-proto), I upgrade it to latest version, and re-published it# Getting Started
Add the laravel-madeline-proto to the project dependency:```shell script
composer require lambq/laravel-madeline-proto
```Then publish the `telegram.php` config file:
```shell script
php artisan vendor:publish --provider="Hu\MadelineProto\MadelineProtoServiceProvider"
```Set up the Telegram API key by providing env variables:
```dotenv
MP_TELEGRAM_API_ID=... //your telegram api id here
MP_TELEGRAM_API_HASH=... //your telegram api hash here
```This wrapper package supports for running both [single](https://github.com/setiawanhu/laravel-madeline-proto/wiki/Single-Telegram-Account) / [multiple](https://github.com/setiawanhu/laravel-madeline-proto/wiki/Multiple-Telegram-Account) telegram account.
## Dig Deeper
Please check [wiki](https://github.com/setiawanhu/laravel-madeline-proto/wiki) for more details about laravel-madeline-proto usage
# Notes
* This wrapper package is still not wrapping all the apis yet, I'm still focusing on wrapping the messages api.
* If you can't find the method that you want in Messages facade or need to use the default danog/MadelineProto api, you might want to use `MadelineProto::getClient()` facade method. It will return `danog\MadelineProto\API` object where you can call all the method provided by the [danog/MadelineProto](https://github.com/danog/MadelineProto) library.
# Thanks To
[Bryan Ramaputra](https://github.com/Ordinal43) for helping me to write readable documentations.