Skip to content

Commit

Permalink
Change name of parameter of broadcastForwardMessages from ids to mess…
Browse files Browse the repository at this point in the history
…age_ids
  • Loading branch information
danog committed May 27, 2023
1 parent 21c5a77 commit edacca9
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 9 deletions.
6 changes: 3 additions & 3 deletions src/Broadcast/Broadcast.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,12 @@ public function broadcastMessages(array $messages, ?Filter $filter = null): int
* 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);
}

/**
Expand Down
6 changes: 3 additions & 3 deletions src/InternalDoc.php
Original file line number Diff line number Diff line change
Expand Up @@ -260,12 +260,12 @@ public function broadcastCustom(\danog\MadelineProto\Broadcast\Action $action, ?
* 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.
Expand Down
3 changes: 2 additions & 1 deletion tests/dockerfiles/php-cli/Dockerfile.alpine
Original file line number Diff line number Diff line change
@@ -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 && \
Expand Down
3 changes: 2 additions & 1 deletion tests/dockerfiles/php-cli/Dockerfile.debian
Original file line number Diff line number Diff line change
@@ -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/

Expand Down

0 comments on commit edacca9

Please sign in to comment.