问题通过Teleton

问题描述 投票:0回答:1

输入图像描述在这里您能告诉我如何发送一次性视频消息吗?我应该使用哪些参数? (Python -Lib:Telethon或其他)

例如,当使用send_file ttl = 0时,它是作为简单的视频消息发送的,但是当使用ttl = 1时,它是发送的,采用一次性消息的形式,但不播放。

也许有某种方式吗?

client.send_file( entity, temp_file, attributes=[ DocumentAttributeVideo( duration=0, w=640, h=640, round_message=True ) ], #supports_streaming=True, ttl=1 #ttl_seconds=1 #video_note=True )

	
python client telegram telethon telegram-api
1个回答
0
投票
实现这一目标的唯一方法是在设定的时间后使用Telethon将其删除。

最新问题
© www.soinside.com 2019 - 2025. All rights reserved.