telegram - 如何使用 Telegram Bot API 发送带自毁定时器的照片?

标签 telegram telegram-bot python-telegram-bot

在 Telegram 应用中,您可以通过在发送前单击时钟图标来发送自毁且无法截图的照片。有没有办法使用 Telegram Bot API 重现此行为?

我正在使用 python-telegram-bot,在其文档中找不到任何内容,但我什至不确定 API 是否允许。我可以在一段时间后使用 bot.delete_message 删除消息,但是,这里重要的部分是图像不应该被屏幕截图。

最佳答案

I'm using python-telegram-bot and couldn't find anything in docs, but i'm not even sure if the API allows it.

Telegram Bot API 尚不支持此类方法。

I could delete the messages after some time using bot.delete_message, however, the important part here is that the images shouldn't be screenshottable.

是的,机器人可以“手动”删除消息,但无法控制截屏的能力。

关于telegram - 如何使用 Telegram Bot API 发送带自毁定时器的照片?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56187603/

相关文章:

java - Telegram 机器人 - 内联模式

c# - 尝试使用 Bot Framework 在 Telegram 中发送消息时出错

telegram - 如何删除 Telegram 群组

telegram - 如何在 Mac 上的 Telegram 上应用主题?

php - 如何通过 Telegram 机器人发送自定义表情符号?

python - 从 Telegram 的机器人 API 获取投票结果和用户选择

python - Telegram bot API 对于每个联系该机器人的用户来说,chat_id 是唯一的吗?

python - 通过 telethon 查找 session ID 并终止 session

Node.js Telegram Bot 返回 ECONNREFUSED

python - Telebot + Celery + pytransitions : response to task