Socket
Socket
Sign inDemoInstall

messenger-business-api

Package Overview
Dependencies
2
Maintainers
1
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

messenger-business-api

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

    1.0.5

Maintainers
1

Readme

Messenger Business api

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

Send a message

.. code:: python

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

.. code:: python

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 )

Keywords

FAQs


Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc