https://github.com/zored/telegram-bundle
PHP Telegram API Symfony Bundle
https://github.com/zored/telegram-bundle
Last synced: 10 months ago
JSON representation
PHP Telegram API Symfony Bundle
- Host: GitHub
- URL: https://github.com/zored/telegram-bundle
- Owner: zored
- License: gpl-3.0
- Created: 2018-03-22T16:55:22.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-05-07T18:15:25.000Z (about 8 years ago)
- Last Synced: 2025-07-18T08:39:16.964Z (11 months ago)
- Language: PHP
- Size: 107 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PHP Telegram API Symfony Bundle
[](https://packagist.org/packages/zored/telegram-bundle)
[](https://travis-ci.org/zored/telegram-bundle)
[](https://coveralls.io/github/zored/telegram-bundle?branch=master)
[](https://scrutinizer-ci.com/g/zored/telegram-bundle/?branch=master)
[](https://ci.appveyor.com/project/zored/telegram-bundle)
Symfony 4 bundle for [Telegram API](https://github.com/zored/telegram).
## Install
```bash
composer require zored/telegram-bundle
```
## CLI usage
- Install bundle globally.
```bash
composer global require zored/telegram-bundle
```
- Ensure that your `PATH` looks at composer bin root (see `composer global --help` for details).
- Set-up environment variables:
```bash
export TELEGRAM_PHONE='' TELEGRAM_API_ID='' TELEGRAM_API_HASH=''
```
- Run:
- Message to your contact:
```bash
telegram tg:client:message 'Ivan' '**Hello there!**'
```
- Start bot and react to `/ping example` commands:
```bash
telegram tg:bot:listen
```