telegram api method · layer 229 · #19c2f763

updates.getDifference

usable by users and bots

Get new updates.

definition

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;

parameters

nametypedescription
flags#Flags, see TL conditional fields
ptsintPTS, see updates.
pts_limitflags.1?intPTS limit
pts_total_limitflags.0?intFor 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
dateintdate, see updates.
qtsintQTS, see updates.
qts_limitflags.2?intQTS limit

returns

updates.Difference

errors (14)

codeerrordescription
400BUSINESS_CONNECTION_NOT_ALLOWEDThis method was invoked over a business connection using invokeWithBusinessConnection, but either (1) we're a user, and users cannot invoke methods over a business connection; (2) we're a bot, but business mode was disabled in @botfather or (3); we're a bot, but this method cannot be invoked over a business connection.
400CDN_METHOD_INVALIDYou can't call this method in a CDN DC.
400CHANNEL_INVALIDThe provided channel is invalid.
400CHANNEL_PRIVATEYou haven't joined this channel/supergroup.
400CHAT_NOT_MODIFIEDNo changes were made to chat information because the new information you passed is identical to the current information.
400DATE_EMPTYDate empty.
400MSG_ID_INVALIDInvalid message ID provided.
400PERSISTENT_TIMESTAMP_EMPTYPersistent timestamp empty.
400PERSISTENT_TIMESTAMP_INVALIDPersistent timestamp invalid.
400USER_NOT_PARTICIPANTYou're not a member of this supergroup/channel.
400USERNAME_INVALIDThe provided username is not valid.
401AUTH_KEY_UNREGISTEREDThe specified authorization key is not registered in the system (for example, a PFS temporary key has expired).
403CHAT_WRITE_FORBIDDENYou can't write in this chat.
500RANDOM_ID_DUPLICATEYou provided a random ID that was already used.

history

present in layers 2–229 · constructor id changed 3×

idlayers
#5b36855a2–7
#0a0414958–46
#2593965162–158
#19c2f763159–229