@@ -493,15 +493,16 @@ public static function insertChat(Chat $chat, ?string $date = null, ?int $migrat
493
493
try {
494
494
$ sth = self ::$ pdo ->prepare ('
495
495
INSERT IGNORE INTO ` ' . TB_CHAT . '`
496
- (`id`, `type`, `title`, `username`, `first_name`, `last_name`, `created_at` ,`updated_at`, `old_id`)
496
+ (`id`, `type`, `title`, `username`, `first_name`, `last_name`, `is_forum`, ` created_at` ,`updated_at`, `old_id`)
497
497
VALUES
498
- (:id, :type, :title, :username, :first_name, :last_name, :created_at, :updated_at, :old_id)
498
+ (:id, :type, :title, :username, :first_name, :last_name, :is_forum, : created_at, :updated_at, :old_id)
499
499
ON DUPLICATE KEY UPDATE
500
500
`type` = VALUES(`type`),
501
501
`title` = VALUES(`title`),
502
502
`username` = VALUES(`username`),
503
503
`first_name` = VALUES(`first_name`),
504
504
`last_name` = VALUES(`last_name`),
505
+ `is_forum` = VALUES(`is_forum`),
505
506
`updated_at` = VALUES(`updated_at`)
506
507
' );
507
508
@@ -523,6 +524,7 @@ public static function insertChat(Chat $chat, ?string $date = null, ?int $migrat
523
524
$ sth ->bindValue (':username ' , $ chat ->getUsername ());
524
525
$ sth ->bindValue (':first_name ' , $ chat ->getFirstName ());
525
526
$ sth ->bindValue (':last_name ' , $ chat ->getLastName ());
527
+ $ sth ->bindValue (':is_forum ' , $ chat ->getIsForum ());
526
528
$ date = $ date ?: self ::getTimestamp ();
527
529
$ sth ->bindValue (':created_at ' , $ date );
528
530
$ sth ->bindValue (':updated_at ' , $ date );
0 commit comments