python
通过以下功能,我尝试使用语言和库向电报发送一个圆圈telethon
。
async def unauth(self, _: telethon.events.NewMessage):
if not self.get_is_running():
return
video_path = 'video/circle.mp4'
wait self.client.send_file(self.dialog.id, video_path, video_note=True)
尽管根据文档,该参数负责媒体文件的“圆度”,但程序会video_note
向选定的对话框发送self.dialog
一个 GIF 文件()。
video_note(
bool
,可选):是否True
将视频作为视频注释发送,也称为圆形视频消息。