telegram api method · layer 229 · #1e91fc99

messages.getSavedDialogs

usable by users

Returns the current saved dialog list » or monoforum topic list ».

definition

messages.getSavedDialogs#1e91fc99 flags:# exclude_pinned:flags.0?true parent_peer:flags.1?InputPeer offset_date:int offset_id:int offset_peer:InputPeer limit:int hash:long = messages.SavedDialogs;

parameters

nametypedescription
flags#Flags, see TL conditional fields
exclude_pinnedflags.0?trueExclude pinned dialogs
parent_peerflags.1?InputPeerIf set, fetches the topic list of the passed monoforum, otherwise fetches the saved dialog list.
offset_dateintOffsets for pagination, for more info click here
offset_idintOffsets for pagination, for more info click here (top_message ID used for pagination)
offset_peerInputPeerOffset peer for pagination
limitintNumber of list elements to be returned
hashlongHash used for caching, for more info click here

returns

messages.SavedDialogs

errors (2)

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.
401AUTH_KEY_UNREGISTEREDThe specified authorization key is not registered in the system (for example, a PFS temporary key has expired).

history

present in layers 170–229 · constructor id changed 1×

idlayers
#5381d21a170–203
#1e91fc99204–229