1
0

common.lisp 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  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. :chatikbot.poller)
  15. (:export :db-transaction
  16. :db-execute
  17. :db-select
  18. :db-single
  19. :db-init
  20. :load-settings
  21. :set-setting
  22. :lists-set-entry
  23. :lists-get
  24. :*message-id*
  25. :*from-id*
  26. :*chat-id*
  27. :*text*
  28. :*message*
  29. :*cmd*
  30. :*args*
  31. :*query-id*
  32. :*from*
  33. :*raw-data*
  34. :*inline-message-id*
  35. :*source-message*
  36. :*source-chat-id*
  37. :*source-message-id*
  38. :*callback*
  39. :*data*
  40. :*section*
  41. :*code*
  42. :*error*
  43. :*raw-state*
  44. :*state*
  45. :*hook*
  46. :*headers*
  47. :*paths*
  48. :*admins*
  49. :*bot-name*
  50. :*hooks*
  51. :+hour+
  52. :+day+
  53. :*chat-default-timezone*
  54. :run-hooks
  55. :add-hook
  56. :remove-hook
  57. :is-admin
  58. :keyify
  59. :dekeyify
  60. :*settings*
  61. :defsetting
  62. :*backoff-start*
  63. :*backoff-max*
  64. :loop-with-error-backoff
  65. :replace-all
  66. :aget
  67. :agets
  68. :agetter
  69. :preprocess-input
  70. :punctuation-p
  71. :read-from-string-no-punct
  72. :print-with-spaces
  73. :spaced
  74. :text-chunks
  75. :http-request
  76. :xml-request
  77. :get-by-tag
  78. :select-text
  79. :trim-nil
  80. :text-with-cdata
  81. :unspacify
  82. :child-text
  83. :clean-text
  84. :json-request
  85. :plist-hash
  86. :plist-json
  87. :format-ts
  88. :parse-cmd
  89. :parse-float
  90. :smart-f
  91. :format-size
  92. :format-interval
  93. :symbol-append
  94. :get-chat-location
  95. :get-chat-timezone
  96. :same-time-in-chat
  97. :group-by
  98. :pmapcar
  99. :filled
  100. :*telegram-token*
  101. :+telegram-max-callback-data-length+
  102. :telegram-get-updates
  103. :telegram-get-me
  104. :telegram-set-webhook
  105. :telegram-send-message
  106. :telegram-forward-message
  107. :telegram-send-photo
  108. :telegram-send-audio
  109. :telegram-send-document
  110. :telegram-send-sticker
  111. :telegram-send-video
  112. :telegram-send-voice
  113. :telegram-send-video-note
  114. :telegram-send-media-group
  115. :telegram-send-location
  116. :telegram-edit-message-live-location
  117. :telegram-stop-message-live-location
  118. :telegram-send-contact
  119. :telegram-send-chat-action
  120. :telegram-send-get-user-profile-photos
  121. :telegram-send-get-file
  122. :telegram-answer-callback-query
  123. :telegram-edit-message-text
  124. :telegram-edit-message-caption
  125. :telegram-edit-message-reply-markup
  126. :telegram-delete-message
  127. :telegram-answer-inline-query
  128. :telegram-file-contents
  129. :telegram-inline-keyboard-markup
  130. :telegram-reply-keyboard-markup
  131. :telegram-reply-keyboard-hide
  132. :telegram-force-reply
  133. :bot-send-message
  134. :token-hmac
  135. :encode-callback-data
  136. :decode-callback-data
  137. :encode-oauth-state
  138. :decode-oauth-state
  139. :*secret-ring*
  140. :*secret-pass-store*
  141. :*secret-pass-bin*
  142. :secret-get
  143. :secret-set
  144. :secret-del
  145. :secret-wipe
  146. :with-secret
  147. :def-webhook-handler
  148. :get-webhook-url
  149. :get-oauth-url
  150. :def-db-init
  151. :with-parsed-message
  152. :def-message-handler
  153. :def-message-cmd-handler
  154. :def-message-admin-cmd-handler
  155. :with-parsed-callback
  156. :def-callback-handler
  157. :def-callback-section-handler
  158. :def-oauth-handler
  159. :def-oauth-section-handler
  160. :with-random-state
  161. :defcron
  162. :handle-update
  163. :*bot-user-id*
  164. :on-next-message
  165. :get-inline-keyboard
  166. :inline-button
  167. :add-chat-cron
  168. :get-chat-crons
  169. :delete-chat-cron
  170. :def-chat-cron-handler
  171. :*poller-token*
  172. :*poller-module*
  173. :rest-parameters
  174. :poller-request
  175. :poller-validate
  176. :poller-authenticate
  177. :poller-error
  178. :poller-no-secret
  179. :poller-cant-authenticate
  180. :poller-call
  181. :poller-poll-lists))
  182. (in-package :chatikbot.common)