Skip to content

Instantly share code, notes, and snippets.

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':{
@nhoffman
nhoffman / pyscript.py
Last active May 8, 2024 14:26
Python script template
#!/usr/bin/env python3
"""A simple python script template.
"""
import os
import sys
import argparse