updates.GetDifference

class pyrogram.raw.functions.updates.GetDifference

Get new updates.

Details:
  • Layer: 223

  • ID: 19C2F763

Parameters:
  • pts (int 32-bit) – PTS, see updates.

  • date (int 32-bit) – date, see updates.

  • qts (int 32-bit) – QTS, see updates.

  • pts_limit (int 32-bit, optional) – PTS limit

  • pts_total_limit (int 32-bit, optional) – For fast updating: if provided and pts + pts_total_limit < remote pts, updates.differenceTooLong will be returned.Simply tells the server to not return the difference if it is bigger than pts_total_limitIf the remote pts is too big (> ~4000000), this field will default to 1000000

  • qts_limit (int 32-bit, optional) – QTS limit

Returns:

updates.Difference

TL Schema

updates.getDifference#19c2f763
flags:#
pts:int
pts_limit:flags.1?int
pts_total_limit:flags.0?int
date:int
qts:int
qts_limit:flags.2?int

= updates.Difference

Parameter Tree

GetDifference
├── ptsint
├── pts_limitint (optional)
├── pts_total_limitint (optional)
├── dateint
├── qtsint
└── qts_limitint (optional)

Example

await app.invoke(
    GetDifference(
        pts=0,
        pts_limit=0,
        pts_total_limit=0,
        date=0,
        qts=0,
        qts_limit=0,
    )
)