alirezarazavi/larabale

Laravel Package for Bale Bot API

dev-master 2020-02-18 12:28 UTC

This package is auto-updated.

Last update: 2024-04-19 21:45:21 UTC


README

Laravel Bale Bot API

LaraBale is laravel package for working with bale bot api.

Notice:

Package is in early development and it's not production ready yet. Please wait for future releases. I also would greatly appreciate it if you kindly give me some feedback on this package.

Installation

  1. install with composer:

composer require alirezarazavi/larabale

  1. get your bot token (https://devbale.ir) and copy inside your project .env file:

BALE_BOT_TOKEN={YOUR-BOT-API-TOKEN}

  1. (optional) publish config file:

php artisan vendor:publish --tag=bale-config

Usage

A simple method for testing your bot's auth token. Requires no parameters. Returns basic information about the bot in form of a User object:

Bale::getMe();

Credits

Alireza Razavi (Contact me)

License

The LaraBale is open-sourced software licensed under the MIT license.