From 7b81d81987fc96e0d1c06b85cb4e94538fd47a9b Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Tue, 16 Jul 2024 19:11:06 +0200 Subject: [PATCH] Change stopsignal to SIGTERM --- src/EventHandler/AbstractMessage.php | 2 -- tests/dockerfiles/Dockerfile.alpine | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/EventHandler/AbstractMessage.php b/src/EventHandler/AbstractMessage.php index eb214f90c..4bf956efd 100644 --- a/src/EventHandler/AbstractMessage.php +++ b/src/EventHandler/AbstractMessage.php @@ -885,7 +885,6 @@ abstract class AbstractMessage extends Update implements SimpleFilters return $this->getClient()->methodCallAsyncRead( 'channels.readHistory', [ - 'peer' => $this->chatId, 'channel' => $this->chatId, 'max_id' => $readAll ? 0 : $this->id, ], @@ -895,7 +894,6 @@ abstract class AbstractMessage extends Update implements SimpleFilters 'messages.readHistory', [ 'peer' => $this->chatId, - 'channel' => $this->chatId, 'max_id' => $readAll ? 0 : $this->id, ], ); diff --git a/tests/dockerfiles/Dockerfile.alpine b/tests/dockerfiles/Dockerfile.alpine index b5cce6e24..59dd4b915 100644 --- a/tests/dockerfiles/Dockerfile.alpine +++ b/tests/dockerfiles/Dockerfile.alpine @@ -25,6 +25,8 @@ ADD ./tests/jit.php /jit.php RUN php /jit.php && rm /jit.php +STOPSIGNAL SIGTERM + WORKDIR /app CMD ["php", "/app/bot.php"]