Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/walderlansena/phbot
:elephant: PHP Library for Telegram Bots
https://github.com/walderlansena/phbot
bot lib php php7 telegram
Last synced: 25 days ago
JSON representation
:elephant: PHP Library for Telegram Bots
- Host: GitHub
- URL: https://github.com/walderlansena/phbot
- Owner: WalderlanSena
- License: mit
- Created: 2018-05-11T02:01:23.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-05-11T14:54:19.000Z (over 6 years ago)
- Last Synced: 2024-05-13T03:22:30.386Z (6 months ago)
- Topics: bot, lib, php, php7, telegram
- Language: PHP
- Homepage:
- Size: 856 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Connect API Telegram
```php
$app = new ApiConnectTelegram([
'token' => ''
]);```
## Use get update Message```php
try {
$request = $app->getUpdates();
} catch (\Exception $exception) {
echo $exception->getMessage();
}```
## Use Send Message
```php
$data = [
'chat_id' => 0,
'text' => ''
];try {
$request = $app->sendMessage($data);
} catch (\Exception $exception) {
echo $exception->getMessage();
}```
# License
A biblioteca Phbot é um software de código aberto licenciado sob a licença MIT license.