1
0

common.lisp 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. (in-package :cl-user)
  2. (defpackage chatikbot.common
  3. (:use :cl
  4. :chatikbot.db
  5. :chatikbot.utils
  6. :chatikbot.telegram
  7. :chatikbot.crypto
  8. :chatikbot.secrets
  9. :chatikbot.server
  10. :chatikbot.macros
  11. :chatikbot.bot
  12. :chatikbot.inline
  13. :chatikbot.chat-cron)
  14. (:export :db-transaction
  15. :db-execute
  16. :db-select
  17. :db-single
  18. :set-setting
  19. :lists-set-entry
  20. :lists-get
  21. :*admins*
  22. :*bot-name*
  23. :+day+
  24. :add-hook
  25. :remove-hook
  26. :keyify
  27. :dekeyify
  28. :*settings*
  29. :defsetting
  30. :*backoff-start*
  31. :*backoff-max*
  32. :loop-with-error-backoff
  33. :replace-all
  34. :aget
  35. :agets
  36. :mappend
  37. :random-elt
  38. :flatten
  39. :preprocess-input
  40. :spaced
  41. :text-chunks
  42. :http-request
  43. :xml-request
  44. :get-by-tag
  45. :select-text
  46. :trim-nil
  47. :text-with-cdata
  48. :child-text
  49. :clean-text
  50. :json-request
  51. :plist-hash
  52. :plist-json
  53. :format-ts
  54. :parse-float
  55. :smart-f
  56. :format-size
  57. :format-interval
  58. :symbol-append
  59. :telegram-get-me
  60. :telegram-send-message
  61. :telegram-forward-message
  62. :telegram-send-photo
  63. :telegram-send-audio
  64. :telegram-send-document
  65. :telegram-send-sticker
  66. :telegram-send-video
  67. :telegram-send-voice
  68. :telegram-send-video-note
  69. :telegram-send-media-group
  70. :telegram-send-location
  71. :telegram-edit-message-live-location
  72. :telegram-stop-message-live-location
  73. :telegram-send-contact
  74. :telegram-send-chat-action
  75. :telegram-send-get-user-profile-photos
  76. :telegram-send-get-file
  77. :telegram-answer-callback-query
  78. :telegram-edit-message-text
  79. :telegram-edit-message-caption
  80. :telegram-edit-message-reply-markup
  81. :telegram-delete-message
  82. :telegram-answer-inline-query
  83. :telegram-file-contents
  84. :telegram-inline-keyboard-markup
  85. :telegram-reply-keyboard-markup
  86. :telegram-reply-keyboard-hide
  87. :telegram-force-reply
  88. :bot-send-message
  89. :token-hmac
  90. :encode-callback-data
  91. :decode-callback-data
  92. :encode-oauth-state
  93. :decode-oauth-state
  94. :secret-get
  95. :secret-set
  96. :secret-del
  97. :secret-wipe
  98. :with-secret
  99. :def-db-init
  100. :def-webhook-handler
  101. :get-webhook-url
  102. :get-oauth-url
  103. :hook
  104. :data
  105. :headers
  106. :paths
  107. :def-db-init
  108. :def-message-handler
  109. :message-id
  110. :from-id
  111. :chat-id
  112. :text
  113. :def-message-cmd-handler
  114. :def-message-admin-cmd-handler
  115. :cmd
  116. :args
  117. :def-callback-handler
  118. :callback
  119. :query-id
  120. :from
  121. :raw-data
  122. :message
  123. :inline-message-id
  124. :source-message
  125. :source-message-id
  126. :source-chat-id
  127. :def-callback-section-handler
  128. :data
  129. :section
  130. :def-oauth-handler
  131. :def-oauth-section-handler
  132. :code
  133. :error
  134. :raw-state
  135. :state
  136. :defcron
  137. :on-next-message
  138. :get-inline-keyboard
  139. :inline-button
  140. :add-chat-cron
  141. :get-chat-crons
  142. :delete-chat-cron
  143. :def-chat-cron-handler))
  144. (in-package :chatikbot.common)