question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature: Disable web preview for telegram

See original GitHub issue

Describe the problem related to the feature request

https://github.com/satorijs/satori/blob/ea0ab178e7c11cf006dc1f4e3b29d1a3aeec5477/adapters/telegram/src/sender.ts#L165-L172

  1. 作为一个指令向机器人,发送的链接大部分时候并不需要生成预览。如果默认禁用的话,可以比较方便的使用 https://t.me/botname?start=xxx 之类的功能
  2. 现阶段的 API 设计似乎没法同时兼容两种方法,就有点难受(x)

Describe the solution you’d like

在表单中默认追加 disable_web_page_preview: true,或者 ↓

Describe alternatives you’ve considered

或者通过别的方式设计接口来把这个选项给塞进去,但是 bot.internal 似乎已经被对应的 web API 填满了,也不知道该放哪里。

或者可以在 bot.internal 中发送请求前加一个 event 之类的可以亡羊补牢一下(x)

Additional context

No response

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:30 (30 by maintainers)

github_iconTop GitHub Comments

2reactions
undefined-moecommented, Jul 28, 2022

翻译:3.10~5.10 会支持

0reactions
memset0commented, Jul 28, 2022

这个确实,kook 的 adapter 似乎都没写上传静态文件的方法(?)

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Q&A] How to disable link preview in channels? : r/Telegram
Hello. How can I disable the link preview when I send a link in a telegram channel?
Read more >
How to Disable Message Previews in Telegram - Get Droid Tips
Launch the Telegram app · On the bottom right corner, tap on the Settings icon. Telegram Settings in iOS · Then under that...
Read more >
Option to disable the link preview · Issue #687 - GitHub
I don't know if anyone has already requested this feature: Please provide an option to disable the link preview. (Telegram Desktop, Linux) ...
Read more >
HOW TO DISABLE OR ENABLE LINK PREVIEWS ... - YouTube
Your browser can't play this video. Learn more. Switch camera ... HOW TO DISABLE OR ENABLE LINK PREVIEWS IN TELEGRAM APP (IOS).
Read more >
Disable Web page Link Preview - WordPress.org
Hi,. How can I disable link previews in the messages sent by the bot in Telegram? I mean, I want to integrate disable_web_page_preview...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found