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:
223ID:
3173D78
- Parameters:
channel (
InputChannel) – The channelfilter (
ChannelMessagesFilter) – Messsage filterpts (
int32-bit) – Persistent timestamp (see updates)limit (
int32-bit) – How many updates to fetch, max 100000Ordinary (non-bot) users are supposed to pass 10-100force (
bool, optional) – Set to true to skip some possibly unneeded updates and reduce server-side load
- Returns:
TL Schema
updates.getChannelDifference#3173d78
flags:#
force:flags.0?true
channel:InputChannel
filter:ChannelMessagesFilter
pts:int
limit:int
= updates.ChannelDifference
Parameter Tree
GetChannelDifference
├── force →
true (optional)├── channel →
InputChannel│ ├──
InputChannelEmpty│ ├──
InputChannel│ │ ├── channel_id →
long│ │ └── access_hash →
long│ └──
InputChannelFromMessage│ ├── peer →
InputPeer│ │ ├──
InputPeerEmpty│ │ ├──
InputPeerSelf│ │ ├──
InputPeerChat│ │ ├──
InputPeerUser│ │ ├──
InputPeerChannel│ │ ├──
InputPeerUserFromMessage│ │ └──
InputPeerChannelFromMessage│ ├── msg_id →
int│ └── channel_id →
long├── filter →
ChannelMessagesFilter│ └──
ChannelMessagesFilter│ ├── exclude_new_messages →
true (optional)│ └── ranges →
Vector < MessageRange >│ └──
MessageRange│ ├── min_id →
int│ └── max_id →
int├── pts →
int└── limit →
intExample
await app.invoke(
GetChannelDifference(
force=None,
channel=await app.resolve_channel(chat_id),
filter=ChannelMessagesFilterEmpty(),
pts=0,
limit=0,
)
)