common.lisp 4.0 KB

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