Skip to main content

A simple callmebot wrapper.

Project description

callmebot-utils

callmebot-utils is a Python module that provides a simple interface to send messages via Facebook, WhatsApp, and Signal using CallMeBot.

PyPI Python Version License


Installation

You can install this module using pip:

pip install callmebot-utils

Usage

Sending a Message via WhatsApp

from callmebot_utils import Whatsapp

api_key = "YOUR_API_KEY"
phone = "PHONE_NUMBER"

whatsapp = Whatsapp(api_key, phone)

response = whatsapp.send_text("Hello from CallMeBot!")
print(response)

Sending a Message via Facebook

from callmebot_utils import Facebook

api_key = "YOUR_API_KEY"

facebook = Facebook(api_key)

response = facebook.send_text("Hello from CallMeBot!")
print(response)

response = facebook.send_image_by_url("https://avatars.githubusercontent.com/u/144510317")
print(response)

response = facebook.send_image("./your_image_path.png")
print(response)

Sending a Message via Signal

from callmebot_utils import Signal

api_key = "YOUR_API_KEY"
phone = "PHONE_NUMBER"

signal = Signal(api_key, phone)

response = signal.send_text("Hello from CallMeBot!")
print(response)

License

This project is licensed under the MIT License.


Author

Developed by Sakib Salim
GitHub: sakib-salim

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

callmebot_utils-0.1.1.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

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

callmebot_utils-0.1.1-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file callmebot_utils-0.1.1.tar.gz.

File metadata

  • Download URL: callmebot_utils-0.1.1.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for callmebot_utils-0.1.1.tar.gz
Algorithm Hash digest
SHA256 190d60b4df5a47e865e6b4fa3efcd2767b8ad53180315eb5ff66a7e097102b43
MD5 36d6188d0d6e93290641cead0aeac5e4
BLAKE2b-256 23c3b15d7be1c0d026a531f2e57f56a4ace58afb4b1c23a16adc0033251efc06

See more details on using hashes here.

File details

Details for the file callmebot_utils-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for callmebot_utils-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9c3567bb5a4d741b652d898a28533df9929ddee3d70029a6fd8babcfe21cfbe3
MD5 079cfe347106e990cb0eb5be76e1d559
BLAKE2b-256 ce24bae699027b4b9f37e5fa77a8f7c56269ef7d9351bda7d7236ba10fb8b6bf

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