common.lisp 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  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. :agetter
  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. :get-chat-location
  60. :get-chat-timezone
  61. :same-time-in-chat
  62. :telegram-get-me
  63. :telegram-send-message
  64. :telegram-forward-message
  65. :telegram-send-photo
  66. :telegram-send-audio
  67. :telegram-send-document
  68. :telegram-send-sticker
  69. :telegram-send-video
  70. :telegram-send-voice
  71. :telegram-send-video-note
  72. :telegram-send-media-group
  73. :telegram-send-location
  74. :telegram-edit-message-live-location
  75. :telegram-stop-message-live-location
  76. :telegram-send-contact
  77. :telegram-send-chat-action
  78. :telegram-send-get-user-profile-photos
  79. :telegram-send-get-file
  80. :telegram-answer-callback-query
  81. :telegram-edit-message-text
  82. :telegram-edit-message-caption
  83. :telegram-edit-message-reply-markup
  84. :telegram-delete-message
  85. :telegram-answer-inline-query
  86. :telegram-file-contents
  87. :telegram-inline-keyboard-markup
  88. :telegram-reply-keyboard-markup
  89. :telegram-reply-keyboard-hide
  90. :telegram-force-reply
  91. :bot-send-message
  92. :token-hmac
  93. :encode-callback-data
  94. :decode-callback-data
  95. :encode-oauth-state
  96. :decode-oauth-state
  97. :secret-get
  98. :secret-set
  99. :secret-del
  100. :secret-wipe
  101. :with-secret
  102. :def-db-init
  103. :def-webhook-handler
  104. :get-webhook-url
  105. :get-oauth-url
  106. :hook
  107. :data
  108. :headers
  109. :paths
  110. :def-db-init
  111. :def-message-handler
  112. :message-id
  113. :from-id
  114. :chat-id
  115. :text
  116. :def-message-cmd-handler
  117. :def-message-admin-cmd-handler
  118. :cmd
  119. :args
  120. :def-callback-handler
  121. :callback
  122. :query-id
  123. :from
  124. :raw-data
  125. :message
  126. :inline-message-id
  127. :source-message
  128. :source-message-id
  129. :source-chat-id
  130. :def-callback-section-handler
  131. :data
  132. :section
  133. :def-oauth-handler
  134. :def-oauth-section-handler
  135. :code
  136. :error
  137. :raw-state
  138. :state
  139. :with-random-state
  140. :defcron
  141. :on-next-message
  142. :get-inline-keyboard
  143. :inline-button
  144. :add-chat-cron
  145. :get-chat-crons
  146. :delete-chat-cron
  147. :def-chat-cron-handler))
  148. (in-package :chatikbot.common)