Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在做一个 OpenCV 项目,但我似乎找不到使用 Telepot 模块将帧发送到我的电报的方法。我已经设置了电报机器人。
------------Opencv processing------ cv2.imshow('Object detector', frame) bot.sendPhoto(238460030, (frame,'rb'))
我收到此错误:
AttributeError:“str”对象没有属性“read”
如果我没记错你需要先拍照,那么你需要发送文件:
photo = ("img.jpeg",mode= 'rb')