telegram api method · layer 229 · #1e91fc99
messages.getSavedDialogs
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
| name | type | description |
|---|---|---|
flags | # | Flags, see TL conditional fields |
exclude_pinned | true | Exclude pinned dialogs |
parent_peer | InputPeer | If set, fetches the topic list of the passed monoforum, otherwise fetches the saved dialog list. |
offset_date | int | Offsets for pagination, for more info click here |
offset_id | int | Offsets for pagination, for more info click here (top_message ID used for pagination) |
offset_peer | InputPeer | Offset peer for pagination |
limit | int | Number of list elements to be returned |
hash | long | Hash used for caching, for more info click here |
returns
errors (2)
| code | error | description |
|---|---|---|
| 400 | BUSINESS_CONNECTION_NOT_ALLOWED | This 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. |
| 401 | AUTH_KEY_UNREGISTERED | The 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×
| id | layers |
|---|---|
| #5381d21a | 170–203 |
| #1e91fc99 | 204–229 |