fbchat-dev / fbchat

Facebook Chat (Messenger) for Python
https://fbchat.readthedocs.io
BSD 3-Clause "New" or "Revised" License
1.19k stars 412 forks source link

Sending a GIF from gfycat result in attachment to download #461

Open ArthurGarnier opened 5 years ago

ArthurGarnier commented 5 years ago

Description of the problem

I'm trying to send a Gif from gfycat to a Group, it results in an attachement in the thread instead of a preview of it...

Code to reproduce

def send_image(image_path): client = Client(login, password) client.sendRemoteFiles([image_path], thread_id=thread_id, thread_type=ThreadType.GROUP)

Note that the same thing happen with sendLocalFiles (by appending .gif or not in the filename)

Environment information

If you have done any research, include that. Make sure to redact all personal information.

ArthurGarnier commented 5 years ago

image_path="https://gfycat.com/fr/radianthandsomeichneumonfly-dwayne-johnson"

For example :)