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
Join Our Forum
We've retired comments here. Visit our forum for faster technical support, connect with other developers, and share your feedback there.