appzz/telegram-message
最新稳定版本:1.0.2
Composer 安装命令:
composer require appzz/telegram-message
包简介
Send telegram message via bot and curlclient library
关键字:
README 文档
README
Send messages to tg group via bot
Preparing
- Create a bot
- Get the bot's API token from @BotFather
- Add your bot to the chat you'll be sending messages to
- Get the ID of the chat : https://api.telegram.org/bot$TELEGRAM_BOT_TOKEN/getUpdates
Usage
<?php
$tg = TelegramMessage::factory ();
$tg->token('00000000000000000000000000000000000000000000000');
$tg->chat_id('-0000000000000000000');
//$tg->markdown();
$tg->text("Ut semper!!!");
//$tg->silent(true);
$result = $tg->send();
?>
统计信息
- 总下载量: 13
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-03-07