appzz / telegram-message
Send telegram message via bot and curlclient library
Installs: 12
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/appzz/telegram-message
Requires
- php: >=5.6
- appzz/arr: 1.*
- appzz/curl-client: 3.*
This package is auto-updated.
Last update: 2025-09-19 11:58:15 UTC
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();
?>