Go to file
2021-09-07 17:19:31 +02:00
.github/ISSUE_TEMPLATE Update issue templates 2020-08-13 03:54:58 +07:00
config Adding default value for Telegram api credential config value 2020-10-11 23:34:58 +07:00
src Code cleaning 2021-05-20 21:34:00 +07:00
.gitignore Adding .gitignore file 2020-10-11 23:35:17 +07:00
composer.json Update MadelineProto and add phabel 2021-09-07 17:19:31 +02:00
LICENSE Create LICENSE 2020-07-12 23:28:02 +07:00
README.md Merge pull request #7 from setiawanhu/dev 2020-11-21 00:44:22 +07:00

Laravel MadelineProto

Latest Stable Version Total Downloads License

A third party Telegram client library danog/MadelineProto wrapper for Laravel.

Getting Started

Add the laravel-madeline-proto to the project dependency:

composer require setiawanhu/laravel-madeline-proto

Then publish the telegram.php config file:

php artisan vendor:publish --provider="Hu\MadelineProto\MadelineProtoServiceProvider"

Set up the Telegram API key by providing env variables:

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 / multiple telegram account.

Dig Deeper

Please check 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 library.

Thanks To

Bryan Ramaputra for helping me to write readable documentations.