chatId

stores the id of the chat being viewed currently

number chatId;

Example

const state = app.getState();
state.chatId = 2; // displays the chat with the id of "2" initially

Related samples

Details

The reactive property stores the id of the chat that is being viewed currently. Can be accessed via the state object of the app.

See also
Back to top