Open g1n-ru opened 1 month ago
I think we can do it, let me code a POC for this in the next days
#[NoReturn] public function instantReply($text): void
{
$payload = [
'method' => 'sendMessage',
'chat_id' => $this->chat->chat_id,
'text' => $text,
'parse_mode' => 'HTML',
...$this->keyboard(),
];
header('Content-Type: application/json');
exit(json_encode($payload));
}
I use this now. But I think, this best way for fast answer without additional http queries. Bot work very fast with this.
Thank You Friend for you work!
any news? Please... )))
it is planned in our developments
Hello, telegram can receive messages and other methods in request:
https://core.telegram.org/bots/faq#how-can-i-make-requests-in-response-to-updates
Can I send messages without new http request?
For example in native php (webhook script):