Download the PHP package abergasov/telegram_logger without Composer
On this page you can find all versions of the php package abergasov/telegram_logger. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package telegram_logger
telegram_logger
PHP logger for web site/app
Example messages telegram/slack
Instalation
composer require abergasov/telegram_logger
Usage
Config documentation
Key | Type | Description |
---|---|---|
token | String | bot token |
chats | Array | list of chats to send message. See example.php |
trace_dir | String/Boolean | By default false Directory where should put trace log file. Must be writable. For example /home/admin/web/site/public_html/trace/logs |
decorate_url | String | Empty by default. Url for access to file via browser. For example "https://example.com/trace/logs" |
logs | Array | Empty by default. path to acess log and error logs. Must be readable. See example.php for details |
Creating telegram bot tutorial
- Find BotFather.
- Send /newbot.
- Set up name and bot-name for your bot.
- Get token and add it to your .env file.
- Find your bot (BotFather already generate link to it in last message).
- Send one or few messages to him.
- Open next url https://api.telegram.org/bot
/getUpdates and find chat_id. - find @myidbot and send him /getid for personal chat
- find @myidbot add him to group and send him /getgroupid@myidbot for chat id
All versions of telegram_logger with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.6.0
ext-curl Version *
ext-json Version *
ext-mbstring Version *
ext-curl Version *
ext-json Version *
ext-mbstring Version *
The package abergasov/telegram_logger contains the following files
Loading the files please wait ....