1
0

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