m1roff/yii2-telegram-notifications
最新稳定版本:2.0.0
Composer 安装命令:
composer require m1roff/yii2-telegram-notifications
包简介
Telegram Notifications
关键字:
README 文档
README
Installation
The preferred way to install this extension is through composer.
Either run
composer require m1roff/yii2-telegram-notifications "dev-master"
Configure
add this lines to your project config file
'components' => [ ..., 'telegram' => [ 'class' => \m1roff\TelegramNotifications::class, 'token' => ***', // Token of your bot 'chat' => ***, // Notifications chat id 'extraTitle' => "⚠️⚠️⚠️ Some extra title added to message⚠️⚠️⚠️\n", // optional 'proxy' => 'socks5://LOGIN:PASS@PROXY_ADDRESS:PROXY_PORT', // optional, if needed to use proxy, like in Russia ], ],
HOW
How to find out my user`s Id ot chat id?
- send message to the bot
- Look at last updates at
https://api.telegram.org/bot{BOT_TOKEN}/getUpdates - {BOT_TOKEN} - replace with your bot token
统计信息
- 总下载量: 925
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2022-09-08