danog / MadelineProto

Async PHP client API for the telegram MTProto protocol
https://docs.madelineproto.xyz
GNU Affero General Public License v3.0
2.74k stars 617 forks source link

How filter incoming messages: all messages without Scheduled #1510

Closed darkdarin closed 2 months ago

darkdarin commented 2 months ago

When a channel message is published in schedule queue - I receive such a message as a regular published message without any markings that this message is scheduled. Then when the message moves from pending to published - I get the same message again. How can I filter pending messages to only receive those that have already been published?

Phamlocbull commented 2 months ago

Hhh

danog commented 2 months ago

Check the $message->fromScheduled flag!