Skip to main content

This repository is a wrapper for Meta messenger api for Messenger and Instagram

Project description

This repository is a wrapper for Meta messenger api for Messenger and Instagram

Send a message

from messenger-business-apy import MessengerApi

access_token: "YOUR TOKEN",
page_id: "YOUR PAGE ID"  # like ID of page instagram
api_version: "YOUR PAGE VERSION"  # default v16.0 - OPTIONAL

messenger = MessengerApi(access_token=access_token,page_id=page_id,api_version=api_version)


messenger.send_text_message(user_id='291380182300130918', message='This is a test!')

#ps the user_id is fake only example

Download of file

from messenger-business-apy import MessengerApi

access_token: 'YOUR TOKEN,
page_id: "YOUR PAGE ID"  # like ID of page instagram
api_version: "YOUR PAGE VERSION"  # default v16.0 - OPTIONAL

messenger = MessengerApi(access_token=access_token,page_id=page_id,api_version=api_version)

uri: "URL for downloading media file"

messenger.get_media(uri=uri )

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

messenger-business-api-1.0.5.tar.gz (3.4 kB view hashes)

Uploaded Source

Built Distribution

messenger_business_api-1.0.5-py3-none-any.whl (4.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page