Airgram

Guides
/
/
Methods

api.openMessageContent()

Informs TDLib that the message content has been opened (e.g., the user has opened a photo, video, document, location or venue, or has listened to an audio file or voice note message). An updateMessageContentOpened update will be generated if something has changed

Parameters OpenMessageContentParams:

NameTypeDescription
chatIdnumber Chat identifier of the message
messageIdnumber Identifier of the message with the opened content
Returns ApiResponse interface:
interface ApiResponse {
  _: 'openMessageContent' | 'error'
  airgram: Airgram
  request: {
    method: 'openMessageContent'
    params: OpenMessageContentParams
  }
  response:  | 
  setState: (nextState: Record<string, unknown>) => void
  getState: () => Record<string, unknown>
}