updates.GetChannelDifference

class pyrogram.raw.functions.updates.GetChannelDifference

Returns the difference between the current state of updates of a certain channel and transmitted.

Details:
  • Layer: 223

  • ID: 3173D78

Parameters:
  • channel (InputChannel) – The channel

  • filter (ChannelMessagesFilter) – Messsage filter

  • pts (int 32-bit) – Persistent timestamp (see updates)

  • limit (int 32-bit) – How many updates to fetch, max 100000Ordinary (non-bot) users are supposed to pass 10-100

  • force (bool, optional) – Set to true to skip some possibly unneeded updates and reduce server-side load

Returns:

updates.ChannelDifference

TL Schema

updates.getChannelDifference#3173d78
flags:#
force:flags.0?true
channel:InputChannel
filter:ChannelMessagesFilter
pts:int
limit:int

= updates.ChannelDifference

Parameter Tree

GetChannelDifference
├── forcetrue (optional)
├── channelInputChannel
│ ├── InputChannelEmpty
│ ├── InputChannel
│ │ ├── channel_idlong
│ │ └── access_hashlong
│ ├── peerInputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_idint
│ └── channel_idlong
├── filterChannelMessagesFilter
│ └── ChannelMessagesFilter
│ ├── exclude_new_messagestrue (optional)
│ └── rangesVector < MessageRange >
│ └── MessageRange
│ ├── min_idint
│ └── max_idint
├── ptsint
└── limitint

Example

await app.invoke(
    GetChannelDifference(
        force=None,
        channel=await app.resolve_channel(chat_id),
        filter=ChannelMessagesFilterEmpty(),
        pts=0,
        limit=0,
    )
)