Chat constructor

Chat(
  1. {required int id,
  2. required ChatType type,
  3. required String title,
  4. ChatPhotoInfo? photo,
  5. required ChatPermissions permissions,
  6. Message? last_message,
  7. required List<ChatPosition> positions,
  8. MessageSender? message_sender_id,
  9. BlockList? block_list,
  10. required bool has_protected_content,
  11. required bool is_translatable,
  12. required bool is_marked_as_unread,
  13. required bool has_scheduled_messages,
  14. required bool can_be_deleted_only_for_self,
  15. required bool can_be_deleted_for_all_users,
  16. required bool can_be_reported,
  17. required bool default_disable_notification,
  18. required int unread_count,
  19. required int last_read_inbox_message_id,
  20. required int last_read_outbox_message_id,
  21. required int unread_mention_count,
  22. required int unread_reaction_count,
  23. required ChatNotificationSettings notification_settings,
  24. required ChatAvailableReactions available_reactions,
  25. required int message_auto_delete_time,
  26. ChatBackground? background,
  27. required String theme_name,
  28. ChatActionBar? action_bar,
  29. required VideoChat video_chat,
  30. ChatJoinRequestsInfo? pending_join_requests,
  31. required int reply_markup_message_id,
  32. DraftMessage? draft_message,
  33. required String client_data,
  34. int? extra,
  35. int? clientId}
)

A chat. (Can be a private chat, basic group, supergroup, or secret chat)

Implementation

Chat