{"id":18828498,"url":"https://github.com/erfanvahabpour/bale-bot-sdk","last_synced_at":"2025-09-03T00:32:00.039Z","repository":{"id":261429749,"uuid":"884089951","full_name":"ErfanVahabpour/Bale-Bot-SDK","owner":"ErfanVahabpour","description":"🤖 Bale Bot API PHP SDK. Lets you build Bale Bots easily! Supports Laravel out of the box.","archived":false,"fork":false,"pushed_at":"2024-12-10T06:07:40.000Z","size":93,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-30T06:13:58.331Z","etag":null,"topics":["bale","bale-bot-api","bale-bot-sdk","bale-not","bot","laravel","laravel-bale","php","php-sdk"],"latest_commit_sha":null,"homepage":"https://bale-bot-sdk.efive.net","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-4-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ErfanVahabpour.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"custom":["https://aqayepardakht.ir/efive"]}},"created_at":"2024-11-06T05:50:18.000Z","updated_at":"2024-12-07T09:01:19.000Z","dependencies_parsed_at":"2024-12-07T10:16:58.231Z","dependency_job_id":"ba5cf9c3-d837-4c4f-966f-91199edaf212","html_url":"https://github.com/ErfanVahabpour/Bale-Bot-SDK","commit_stats":null,"previous_names":["erfanvahabpour/bale-bot-sdk"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ErfanVahabpour%2FBale-Bot-SDK","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ErfanVahabpour%2FBale-Bot-SDK/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ErfanVahabpour%2FBale-Bot-SDK/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ErfanVahabpour%2FBale-Bot-SDK/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ErfanVahabpour","download_url":"https://codeload.github.com/ErfanVahabpour/Bale-Bot-SDK/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":231819040,"owners_count":18431238,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bale","bale-bot-api","bale-bot-sdk","bale-not","bot","laravel","laravel-bale","php","php-sdk"],"created_at":"2024-11-08T01:30:00.621Z","updated_at":"2024-12-30T06:14:07.347Z","avatar_url":"https://github.com/ErfanVahabpour.png","language":"PHP","funding_links":["https://aqayepardakht.ir/efive"],"categories":[],"sub_categories":[],"readme":"Bale Bot API - PHP SDK\n==========================\n\n\u003e Bale Bot PHP SDK lets you develop Bale Bots in PHP easily! Supports Laravel out of the box.\n\u003e\n\u003e [Bale Bot API](https://dev.bale.ai/) is an HTTP-based interface created for developers keen on building bots for Bale.\n\u003e \n\u003e To learn more about the Bale Bot API, please consult the [Introduction to Bots](https://dev.bale.ai/) and [Bot FAQ](https://docs.bale.ai/) on official Bale site.\n\u003e\n\u003e To get started writing your bots using this SDK, Please refer the [documentation](https://bale-bot-sdk.efive.net/).\n\n## Documentation\n\nDocumentation for the SDK can be found on the [website](https://bale-bot-sdk.efive.net/).\n\n## Installation\n\n```shell\ncomposer require erfanvahabpour/bale-bot-sdk\n```\n\n## Examples\n\n### getMe Method\n\u003cp\u003eA simple method for testing your bot's auth token.\n\u003cbr\u003e\nReturns basic information about the bot in form of a User object.\n\u003c/p\u003e\n\n```php\n$Bale = new Api($token);\n\n$response = $Bale-\u003egetMe(); // return User object\n```\n\n### sendMessage Method\n\u003cp\u003eSend text messages.\u003c/p\u003e\n\n```php\n$Bale = new Api($token);\n\n$response = $Bale-\u003esendMessage([\n    'chat_id' =\u003e '2100855301',\n    'text' =\u003e 'This is a text.'\n]); // return Message object\n```\n\n### sendMessage Method in Laravel\n\u003cp\u003eSend text messages.\u003c/p\u003e\n\n```php\nuse EFive\\Balle\\Laravel\\Facades\\Bale;\n\n$response = Bale::sendMessage([\n    'chat_id' =\u003e '2100855301',\n    'text' =\u003e 'This is a text.'\n]); // return Message object\n```\n\n### Get first name of a chat\n\u003cp\u003eShow the first name of a chat(private chats only)\u003c/p\u003e\n\n```php\n$Bale = new Api($token);\n\n$response = $Bale-\u003egetChat([\n    'chat_id' =\u003e '2100855301'\n]); // return User object\n\necho $response-\u003egetFirstName();\n```\n\n### Setting multiple bots\n\u003cP\u003eFor setting multiple bots in a single application\u003c/P\u003e\n\n```php\nuse EFive\\Bale\\BotsManager;\n\n$config = [\n    'bots' =\u003e [\n        'firstBot' =\u003e [\n            'token' =\u003e $firstBotToken,\n        ],\n        'secondBot' =\u003e [\n            'token' =\u003e $secondBotToken,\n        ],\n    ]\n];\n\n$bale = new BotsManager($config);\n\n// getMe Method\n$response = $bale-\u003ebot('firstBot')-\u003egetMe(); // return User object\n```\n\n## Disclaimer\n\nThis project and its author are neither associated nor affiliated with [Bale](https://bale.ai/) in any way. \nPlease see the [License](https://github.com/ErfanVahabpour/Bale-Bot-SDK/blob/main/LICENSE.md) for more details.\n\n## License\n\nThis project is released under the [BSD 4-Clause](https://github.com/ErfanVahabpour/Bale-Bot-SDK/blob/main/LICENSE.md) License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferfanvahabpour%2Fbale-bot-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ferfanvahabpour%2Fbale-bot-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferfanvahabpour%2Fbale-bot-sdk/lists"}