[*] комбинированный класс для работы с телеграм

This commit is contained in:
rsgrinko committed 2022-07-15 17:59:40 +03:00
1 parent 1d6124a975
commit f74c23b527
3 files changed
+22 -5

No files matched your search

+2 -3
View File
@@ -15,8 +15,7 @@
$tg = new Telegram2(TELEGRAM_BOT_TOKEN);
$tg->setRemoteRequest($data);
$tg->setChat(TELEGRAM_ADMIN_CHAT_ID)->sendMessage(print_r($tg->getChat('bitrix'), true));
//$tg->setChat(TELEGRAM_ADMIN_CHAT_ID)->sendLocation( '54.007143', '38.046204');
$res = $tg->setChat(TELEGRAM_ADMIN_CHAT_ID)->updateMessage(121, '');
// sendTelegram(print_r($data, true));
sendTelegram(print_r($res, true));