Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] telegram 消息内容增加 hashtag 以便于搜索 #401

Closed
4 tasks done
wen-long opened this issue Apr 5, 2023 · 4 comments
Closed
4 tasks done

[Feature] telegram 消息内容增加 hashtag 以便于搜索 #401

wen-long opened this issue Apr 5, 2023 · 4 comments
Labels
enhancement New feature or request

Comments

@wen-long
Copy link

wen-long commented Apr 5, 2023

Verify steps

  • Tracker 我已经在 Issue Tracker 中找过我要提出的问题
  • Need 当前 QianDao 框架并不包含该功能特性或者还不完善
  • Framework 这是 QianDao 框架应包含的特性,并非模板特性
  • Meaningful 我提交的不是无意义的 催促更新或修复 请求

Describe the Feature

没有 hashtag 时,telegram 通知按时间排列,难以肉眼跟踪特定站点的消息

Describe the solution

https://github.com/qiandao-today/qiandao/blob/master/libs/funcs.py#L153 处进行修改,将站点的二级域名部份作为 hashtag
例如 签到任务 #btschool - 成功
此时 #btschool 高亮为蓝色,且点击后进入按 #btschool 关键词搜索后的消息页面

要注意,hashtag 部分必须作为单独的实体,通过修改现在的 content 是不会让 TG 客户端高亮显示 hashtag 并进行索引的
可以参考 https://core.telegram.org/bots/update56kabdkb12ibuisabdubodbasbdaosd

Describe alternatives

No response

Additional context

希望的效果如图

点击后如图

@wen-long wen-long added the enhancement New feature or request label Apr 5, 2023
@a76yyyy a76yyyy added this to QD May 1, 2023
@a76yyyy a76yyyy moved this to Todo in QD May 1, 2023
@a76yyyy a76yyyy moved this from Todo to In Progress in QD Jun 10, 2023
a76yyyy added a commit that referenced this issue Jun 12, 2023
Telegram 消息标题增加 hashtag 以便于搜索
@a76yyyy
Copy link
Contributor

a76yyyy commented Jun 12, 2023

请更新至 dev 版尝试, 如无问题请 close 这个 issue

@wen-long
Copy link
Author

wen-long commented Jun 12, 2023

请更新至 dev 版尝试, 如无问题请 close 这个 issue

试了不行,不过代码也不太对
<b> 里面再有 # 是无效的,正文 Describe the solution 有提到

@a76yyyy
Copy link
Contributor

a76yyyy commented Jun 12, 2023

请更新至 dev 版尝试, 如无问题请 close 这个 issue

试了不行,不过代码也不太对 <b> 里面再有 # 是无效的,正文 Describe the solution 有提到

我这边是没有问题的
Screenshot_2023-06-12-15-33-11-242_org telegram messenger web

IMG_20230612_153528

你那边显示什么

@wen-long
Copy link
Author

不好意思我 docker-compose pull 下来用 docker-compose start 启动的还是旧镜像;docker-compose up 起新镜像现在可以了。
thanks for your work

@github-project-automation github-project-automation bot moved this from In Progress to Done in QD Jun 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Done
Development

No branches or pull requests

2 participants