Yurba Docs
Yurba Documentation

Get started

Accounts

Apps

Users

Relationships

Dialogs (Messages)

Tracks (MuseBase)

Photos

Posts

Comments

Safety

Other

Yurba CDN (cdn.yurba.one)

For Desktop Developers

GET /dialogs/{dialog_id}

Returns DialogModel.

Request URL params:

dialog_id: int

Response:

{ ID: int, Type: string, # "group", "channel" Members: int, Author: ShortUserModel, DialogDude: ShortUserModel, Name: string, Link: string, Description: string, Avatar: int, Verify: string, Private: bool, LastMessage: MessageModel, Timestamp: int } More about ShortUserModel you can look here: /user/{user_id}

About MessageModel: /dialogs/messages/{message_id}

Example:

{ ID: 56, Type: "channel", Members: 15, Author: { ID: 0, Name: "", Surname: "", Link: "", Avatar: 0, Sub: 0, Verify: "", Ban: 0, Emoji: "", CosmeticAvatar: 0, Online: { Online: false, LastBeen: 0, Degree: "" }, CommentsState: 0, ViewAvatarState: 0, RelationshipState: "" }, DialogDude: null, Name: "Yurba", Link: "yurba_news", Description: "Офіційний новинний канал Yurba", Avatar: 0, Verify: "Default", Private: false, LastMessage: { ID: 10788, Author: { ID: 0, Name: "", Surname: "", Link: "", Avatar: 0, Sub: 0, Verify: "", Ban: 0, Emoji: "", CosmeticAvatar: 0, Online: { Online: false, LastBeen: 0, Degree: "" }, CommentsState: 0, ViewAvatarState: 0, RelationshipState: "" }, Dialog: { ID: 56, Type: "channel", Name: "Yurba" }, Type: "message", Text: "", Photos: [-80, -82, -81, -83, -79], ReplyTo: null, Attachments: [], Timestamp: 1724114227, EditTimestamp: 0, Read: true }, Timestamp: 1713221679 }

Errors:

auth_failed: token authorization failed

dialog_not_found: incorrect dialog ID

access_denied: you don't have access to dialog

ShortDialogModel

Some endpoints contain a ShortDialogModel, which contains basic information about the dialog

{ ID: int, Type: string, # "group", "channel" Name: string }

Example:

{ ID: 56, Type: "channel", Name: "Yurba" }