process-telegram-updates/process_message.php
Frederico @ VilaRosa02 b6b01b48dc init
2025-08-27 08:52:36 +00:00

37 lines
1.2 KiB
PHP

<?php
function process_message(array $from,array $chat,string $date,string $text) {
// TELEGRAM FUNCTIONS SAMPLE USAGE :
//
// telegram_send_text('479054164', "Olá, Frederico! <b>Negrito</b>");
// telegram_send_file('479054164', '/path/to/image.jpg', 'photo', 'Here is a photo');
// telegram_send_file('479054164', '/path/to/report.pdf', 'document', 'Monthly report');
//
// [from] => Array
// (
// [id] => 479054164
// [is_bot] =>
// [first_name] => Frederico
// [last_name] => Falcão
// [username] => fredericomfalcao
// [language_code] => en
// [is_premium] => 1
// )
//
// [chat] => Array
// (
// [id] => 479054164
// [first_name] => Frederico
// [last_name] => Falcão
// [username] => fredericomfalcao
// [type] => private
// )
//
// [date] => 1756281243
// [text] => tudo bem?
}