This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import requests | |
from requests_toolbelt import MultipartEncoder | |
def send_attachment(page_token, recipient_id, filetype, path): # filetype = image, audio, video, file | |
payload = { | |
'recipient':{ | |
{ 'id':recipient_id } | |
}, | |
'message':{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
"""A simple python script template. | |
""" | |
import os | |
import sys | |
import argparse |