mirror of
https://github.com/PaiGramTeam/PamGram.git
synced 2024-11-25 15:42:14 +00:00
f122e21092
* 增加 html to image 缓存 * 对 template_service.render 进行封装,管理缓存逻辑 * cache key 为 html 的 sha256 * cache value 为 reply_photo 后 telegram 返回的 file_id * 存入 redis,并设置合理的 ttl Co-authored-by: 洛水居室 <luoshuijs@outlook.com> Co-authored-by: xtaodada <xtao@xtaolink.cn>
15 lines
207 B
Python
15 lines
207 B
Python
class TemplateException(Exception):
|
|
pass
|
|
|
|
|
|
class QuerySelectorNotFound(TemplateException):
|
|
pass
|
|
|
|
|
|
class ErrorFileType(TemplateException):
|
|
pass
|
|
|
|
|
|
class FileIdNotFound(TemplateException):
|
|
pass
|