summaryrefslogtreecommitdiff
path: root/src/tg/business-bot-rights.lisp
blob: d6834512154fc997834d07bbb4dd7ff8709be907 (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
32
33
34
35
36
37
38
39
40
;; SPDX-License-Identifier: EUPL-1.2
;; SPDX-FileCopyrightText: 2025 Uko Kokņevičs <perkontevs@gmail.com>
(defpackage :ukkoclot/src/tg/business-bot-rights
  (:use :c2cl :ukkoclot/src/tg/type-macros)
  (:export
   #:business-bot-rights
   #:make-business-bot-rights
   #:business-bot-rights-p
   #:copy-business-bot-rights
   #:business-bot-rights-can-reply
   #:business-bot-rights-can-read-messages
   #:business-bot-rights-can-delete-sent-messages
   #:business-bot-rights-can-delete-all-messages
   #:business-bot-rights-can-edit-name
   #:business-bot-rights-can-edit-bio
   #:business-bot-rights-can-edit-profile-photo
   #:business-bot-rights-can-edit-username
   #:business-bot-rights-can-change-gift-settings
   #:business-bot-rights-can-view-gifts-and-stars
   #:business-bot-rights-can-convert-gifts-to-stars
   #:business-bot-rights-can-transfer-and-upgrade-gifts
   #:business-bot-rights-can-transfer-stars
   #:business-bot-rights-can-manage-stories))
(in-package :ukkoclot/src/tg/business-bot-rights)

(define-tg-type business-bot-rights
  (can-reply boolean nil)
  (can-read-messages boolean nil)
  (can-delete-sent-messages boolean nil)
  (can-delete-all-messages boolean nil)
  (can-edit-name boolean nil)
  (can-edit-bio boolean nil)
  (can-edit-profile-photo boolean nil)
  (can-edit-username boolean nil)
  (can-change-gift-settings boolean nil)
  (can-view-gifts-and-stars boolean nil)
  (can-convert-gifts-to-stars boolean nil)
  (can-transfer-and-upgrade-gifts boolean nil)
  (can-transfer-stars boolean nil)
  (can-manage-stories boolean nil))