<button type="button" id="button">Button</button>
<div class="message" style="display:none;">Чувак, обнови страницу</div>
<script>
setTimeout(function() {
$('button').attr('disabled');
$('.message').fadeIn();
}, 30000);
</script>
<p><span class="time-left" id="time-left"></span></p>
<style>
#time-left
{font-size: 40px}
</style>
<script>
var delay = 1370000,
output = document.querySelector('.time-left'),
timer = setInterval(function() {
output.textContent = --delay;
if (!delay) {
clearInterval(timer);
window.location.href = "https:///";
}
}, 1000);
output.textContent = delay;</script>
$bot->command("start", function ($message) use ($bot) {
$keyboard = new \TelegramBot\Api\Types\Inline\InlineKeyboardMarkup(
[
[
['callback_data' => 'data_test', 'text' => 'Смотреть видео 1', 'one_time_keyboard' => true],
//['callback_data' => 'data_test2', 'text' => 'ОтветЪ'] втоаря кнопка. пока не нужна
]
]
);
$url = "BAACAgIAAxkBAAICcV9927FlDPwZfFNk3uh2CpB0vMV5AAJUCQACw0HwSwfK5-9mnPhcGwQ";
$pic = "AgACAgIAAxkBAAICb199ye19M9O6eiEoftEtwXIHwXCUAAIEszEbitzxS4_hUZs9pFpCYq1sli4AAwEAAwIAA20AA3pQAgABGwQ";
$bot->sendVideo(['chat_id' => $chat_id, 'video' => $url, 'caption' => "МНОГО ТЕКСТА"]);
$bot->sendPhoto(['chat_id' => $chat_id, 'foto' => $pic, 'caption' => "МНОГО ТЕКСТА"]);
А где вы это нашли?
/phpmailer/smtpajax.php