telegram api method · layer 229 · #a0f4cb4f

messages.getDialogs

usable by users

Returns the current user dialog list.

definition

messages.getDialogs#a0f4cb4f flags:# exclude_pinned:flags.0?true folder_id:flags.1?int offset_date:int offset_id:int offset_peer:InputPeer limit:int hash:long = messages.Dialogs;

parameters

nametypedescription
flags#Flags, see TL conditional fields
exclude_pinnedflags.0?trueExclude pinned dialogs
folder_idflags.1?intPeer folder ID, for more info click here
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.Dialogs

errors (8)

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.
400CHAT_NOT_MODIFIEDNo changes were made to chat information because the new information you passed is identical to the current information.
400FOLDER_ID_INVALIDInvalid folder ID.
400OFFSET_PEER_ID_INVALIDThe provided offset peer is invalid.
400PINNED_DIALOGS_TOO_MUCHToo many pinned dialogs.
400TAKEOUT_INVALIDThe specified takeout ID is invalid.
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.

history

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

idlayers
#eccf1df62–23
#6b47f94d46
#191ba9c562–74
#05c0fae275
#191ba9c576
#05c0fae277
#191ba9c578–81
#b098aee682–98
#a0ee3b7399–132
#a0f4cb4f133–229