По идее можно и ты даже делаешь всё для этого верно.
<?php
ignore_user_abort(true);
set_time_limit(0);
ob_start();
function tlgrm($method, $data) {
#функция отправки сообщения
}
header('Connection: close');
header('Content-Length: '.ob_get_length());
ob_end_flush();
flush();
tlgrm('sendMessage', ['text'=> "ответ 1"]);
sleep(100);
tlgrm('sendMessage', ['text'=> "ответ 2"]);Не хочешь использовать rabbitmq, используй хотя бы крон.
что у тебя там целую минуту делается.
HTTP/1.1 401 Unauthorized
WWW-Authenticate: Digest realm="Login to bd72fbb2e0734a3cb18d4cb40504cdf0", qop="auth", nonce="452309313", opaque="1a067f2162e6693bed2d111d38af7bee229a316f"
Connection: close
Set-Cookie:secure; HttpOnly
CONTENT-LENGTH: 0
HTTP/1.1 200 OK
X-XSS-Protection: 1;mode=block
X-Frame-Options: SAMEORIGIN
Content-Security-Policy: script-src 'self' 'unsafe-inline' 'unsafe-eval'
Strict-Transport-Security: max-age=604800; includeSubDomains
Content-type: text/plain;charset=utf-8
CONNECTION: close
Set-Cookie:secure; HttpOnly
CONTENT-LENGTH: 19$pdo->prepare("SELECT data FROM db_main WHERE hash = ?");# twitter-tweet
@before(<iframe>, \
src, ".//a[starts-with(@href, \"https://twitter.com/\")][contains(@href, \"/status/\") or contains(@href, \"/statuses/\")]/@href", \
class, "twitter-tweet" \
): $body//blockquote[has-class("twitter-tweet")]
@remove
# twitter-video
@before(<iframe>, \
src, ".//a[starts-with(@href, \"https://twitter.com/\")][contains(@href, \"/status/\") or contains(@href, \"/statuses/\")]/@href", \
class, "twitter-video" \
): $body//blockquote[has-class("twitter-video")]
@remove
# facebook post
$fb_post: $body//div[has-class("fb-post")][@data-href]
@urlencode: $fb_post/@data-href
@set_attr(data-src, "https://www.facebook.com/plugins/post.php?href=", @data-href, "&show_text=", @data-show-text, "&width=640"): $fb_post
@before(<iframe>, src, @data-src, class, "fb-post"): $fb_post
@remove
# facebook video
$fb_video: $body//div[has-class("fb-video")][@data-href]
@urlencode: $fb_video/@data-href
@set_attr(data-src, "https://www.facebook.com/plugins/video.php?href=", @data-href, "&show_text=", @data-show-text, "&width=640"): $fb_video
@before(<iframe>, src, @data-src, class, "fb-video"): $fb_video
@remove
# aparat
$aparat_video: $body//script[starts-with(@src, "https://www.aparat.com/embed/")]
@set_attr(data-hash, @src)
@match("^https://www.aparat.com/embed/([^?]+)", 1): $@
@set_attr(data-src, "https://www.aparat.com/video/video/embed/videohash/", @data-hash, "\\/vt/frame"): $aparat_video
@before(<iframe>, src, @data-src, class, "aparat"): $aparat_video
@remove
# instagram
@before(<iframe>, \
src, ".//a[contains(@href, \"instagram.com/p/\")]/@href", \
class, "instagram" \
): $body//blockquote[has-class("instagram-media")]
@remove
# github
<iframe>: $body//script[starts-with(@src,"https://gist.github.com/")]
# telegram
$tg_post: $body//*[self::script or self::blockquote][@data-telegram-post]
@set_attr(data-src, "https://t.me/", @data-telegram-post, "?embed=1"): $tg_post
@set_attr(data-src, @data-src, "&userpic=", @data-userpic): $tg_post[@data-userpic]
@set_attr(data-src, @data-src, "&single=1"): $tg_post[@data-single]
@before(<iframe>, src, @data-src, class, "telegram-post"): $tg_post
@removehttps://telegra.ph/embed/youtube?url=https://www.youtube.com/watch?v=HpXHdegMTtwhttps://telegra.ph/embed/twitter?url=https://twitter.com/norimyxxxo/status/1460182801794404357
прошивка последняя