common.lisp 4.0 KB

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