Airgram

Guides
/
/
Methods

api.addRecentlyFoundChat()

Adds a chat to the list of recently found chats. The chat is added to the beginning of the list. If the chat is already in the list, it will be removed from the list first

Parameters AddRecentlyFoundChatParams:

NameTypeDescription
chatIdnumber Identifier of the chat to add
Returns ApiResponse interface:
interface ApiResponse {
  _: 'addRecentlyFoundChat' | 'error'
  airgram: Airgram
  request: {
    method: 'addRecentlyFoundChat'
    params: AddRecentlyFoundChatParams
  }
  response:  | 
  setState: (nextState: Record<string, unknown>) => void
  getState: () => Record<string, unknown>
}