Skip to content

aliakbarazizi/bale-bot-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Unoffical PHP SDK for Bale Messenger

PHP SDK and samples for Bale bot messenger.

Getting Started

Prerequisites

You'll need to create your bot by @Bot_Father. Bot_Father gives you a Token to start.

Installing

Using Composer

composer require aliazizi/bale-bot-sdk
require __DIR__.'/../vendor/autoload.php';

$api = new \BaleBot\Api('Your-Token');

I don't have Composer

You can download it here. A step by step series of examples that tell you how to get a development env running

End with an example of getting some data out of the system or using it for a little demo

Example

$api->sendTextMessage('Message','to channel name without at sign')
$api->sendPhotoMessage($filepath,'to channel name without at sign','Caption')
$api->sendVideoMessage($filepath,'to channel name without at sign','Caption')

Contributing

If you would like to contribute to this project, please feel free to submit a pull request. Before you do, take a look at the contributing guide.

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE file for details