interface Chat {
  id: number
  project_id: number
  telegram_id: string
  message_id: number
  name: string
  is_channel: boolean
  user_count: number
  last_update_time: number
  description: string | null
  logo: string | null
  owner_id?: number
  bot_access: 0 | 1 | 2
  bot_access_date: number
  bot_rights: 1 | 2 | 3
  state: 1 | 2 | 3 | 4
  state_date: null | number
  users: number []
  has_conference: boolean
  last_pts?: number
  [key: string]: number | string | boolean | null | number[]
}

interface ObsoleteChat {
  id: number
  name: string
  state: 1 | 2 | 3 | 4
  state_date: null | number
  telegram_id: string
  logo: string | null
  [key: string]: number | string | null
}

export type {
  Chat,
  ObsoleteChat
}
