summaryrefslogtreecommitdiff
path: root/src/tg/message-reaction-updated.lisp
blob: 896bb9b6d16916b8900514a1eb7eef9480638f7d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
;; SPDX-License-Identifier: EUPL-1.2
;; SPDX-FileCopyrightText: 2025 Uko Kokņevičs <perkontevs@gmail.com>
(defpackage :ukkoclot/src/tg/message-reaction-updated
  (:use
   :c2cl
   :ukkoclot/src/tg/chat
   :ukkoclot/src/tg/type-macros
   :ukkoclot/src/tg/reaction-type
   :ukkoclot/src/tg/user)
  (:export
   #:message-reaction-updated
   #:make-message-reaction-updated
   #:message-reaction-updated-p
   #:copy-message-reaction-updated
   #:message-reaction-updated-chat
   #:message-reaction-updated-message-id
   #:message-reaction-updated-user
   #:message-reaction-updated-actor-chat
   #:message-reaction-updated-date
   #:message-reaction-updated-old-reaction
   #:message-reaction-updated-new-reaction))
(in-package :ukkoclot/src/tg/message-reaction-updated)

(define-tg-type message-reaction-updated
  (chat chat)
  (message-id integer)
  (user (or user null) nil)
  (actor-chat (or chat null) nil)
  (date integer)
  (old-reaction (array reaction-type))
  (new-reaction (array reaction-type)))