1
0
mirror of https://github.com/danog/MadelineProto.git synced 2025-01-22 20:11:26 +01:00

Change name of parameter of broadcastForwardMessages from ids to message_ids

This commit is contained in:
Daniil Gentili 2023-05-27 19:11:44 +02:00
parent 21c5a773e0
commit edacca9f3d
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7
5 changed files with 11 additions and 9 deletions

2
docs

@ -1 +1 @@
Subproject commit d67b23e6eb8e9b8ea0f9086aea6d9e4b05e4c007
Subproject commit e4d123bcc66f1ab4b4e3eb1620fa95621d807960

View File

@ -66,12 +66,12 @@ trait Broadcast
* containing a Progress object for all broadcasts currently in-progress.
*
* @param mixed $from_peer Bot API ID or Update, from where to forward the messages.
* @param list<int> $ids IDs of the messages to forward.
* @param list<int> $message_ids IDs of the messages to forward.
* @param bool $drop_author If true, will forward messages without quoting the original author.
*/
public function broadcastForwardMessages(mixed $from_peer, array $ids, bool $drop_author = false, ?Filter $filter = null): int
public function broadcastForwardMessages(mixed $from_peer, array $message_ids, bool $drop_author = false, ?Filter $filter = null): int
{
return $this->broadcastCustom(new ActionForward($this, $this->getID($from_peer), $ids, $drop_author), $filter);
return $this->broadcastCustom(new ActionForward($this, $this->getID($from_peer), $message_ids, $drop_author), $filter);
}
/**

View File

@ -260,12 +260,12 @@ abstract class InternalDoc
* containing a Progress object for all broadcasts currently in-progress.
*
* @param mixed $from_peer Bot API ID or Update, from where to forward the messages.
* @param list<int> $ids IDs of the messages to forward.
* @param list<int> $message_ids IDs of the messages to forward.
* @param bool $drop_author If true, will forward messages without quoting the original author.
*/
public function broadcastForwardMessages(mixed $from_peer, array $ids, bool $drop_author = false, ?\danog\MadelineProto\Broadcast\Filter $filter = null): int
public function broadcastForwardMessages(mixed $from_peer, array $message_ids, bool $drop_author = false, ?\danog\MadelineProto\Broadcast\Filter $filter = null): int
{
return $this->wrapper->getAPI()->broadcastForwardMessages($from_peer, $ids, $drop_author, $filter);
return $this->wrapper->getAPI()->broadcastForwardMessages($from_peer, $message_ids, $drop_author, $filter);
}
/**
* Sends a list of messages to all peers (users, chats, channels) of the bot.

View File

@ -1,4 +1,5 @@
FROM php:fpm-alpine
ARG ARCH=
FROM ${ARCH}php:fpm-alpine
RUN apk add make g++ && \
curl -sSLf https://github.com/danog/PrimeModule-ext/archive/refs/tags/2.0.tar.gz | tar -xz && \

View File

@ -1,4 +1,5 @@
FROM php:fpm-bullseye
ARG ARCH=
FROM ${ARCH}php:fpm-bullseye
ADD https://raw.githubusercontent.com/danog/docker-php-extension-installer/master/install-php-extensions /usr/local/bin/