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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file messenger-business-api-1.0.5.tar.gz.

File metadata

  • Download URL: messenger-business-api-1.0.5.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.0

File hashes

Hashes for messenger-business-api-1.0.5.tar.gz
Algorithm Hash digest
SHA256 d98f0427a393c65330b38598e174896c510adc9ab26aa3e78855e4da577f09da
MD5 0cc7baf36cfe80551217263c0edf54b7
BLAKE2b-256 cb197aacfb242c6f56e38dcddfd1ce6c5a2b7c8948ccaa922d9afade707c7657

See more details on using hashes here.

File details

Details for the file messenger_business_api-1.0.5-py3-none-any.whl.

File metadata

File hashes

Hashes for messenger_business_api-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 da5380bc843047a30dd2d27a5f985429a538748a5ccd507080382f3500cd3605
MD5 a8a1df84ac9fab7bc1c3a7a05133ceb3
BLAKE2b-256 92e22f48cc75ea21ea7edadcc2f20ccfd97a9ef6db5d7208ddd2ef3d1fa90c42

See more details on using hashes here.

Supported by

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