Skip to main content

A module for sending messages to communication apps

Project description

msg2apps

A python module for sending messages to communication apps

Support apps

Wechat

Send a message(text only now) to Wecom.

Args:

  • msg: Message you want to send.

  • corpid: Each enterprise has a unique corpid. To obtain this information, you can view the "enterprise ID" under "My Company"-"Enterprise Information" in the management background (administrator rights are required).link

  • secret: Secret is the "key" used to ensure data security in enterprise applications. Each application has an independent access key. To ensure data security, secrets must not be leaked.link

  • agentid: Each application has a unique agentid. In the management background -> "applications and applets" -> "applications", click on an application, you can see the agentid.link

usage:

from msg2apps import Wechat

Wechat(msg, corpid, secret, agentid)

Telegram

Send a message(text only now) to specific account through bot.

Args:

  • API_token: Each bot is given a unique authentication token when it is created. The token looks something like 123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11, but we'll use simply in this document instead. You can learn about obtaining tokens and generating new ones in this document.
  • chat_id: Unique identifier for the target chat or username of the target channel (in the format @channelusername)

usage:

from msg2apps import Telegram

Telegram(msg, token, chat_id)

Others

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

msg2apps-1.1.0.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

msg2apps-1.1.0-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

File details

Details for the file msg2apps-1.1.0.tar.gz.

File metadata

  • Download URL: msg2apps-1.1.0.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.1 pkginfo/1.7.0 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.7.7

File hashes

Hashes for msg2apps-1.1.0.tar.gz
Algorithm Hash digest
SHA256 6fb8c4b2585ab7e18ebe2111b38efca6d605043b95fb0a6abe064532c22a2b1e
MD5 495cdfe0760bb9a1cf86d3bea4451479
BLAKE2b-256 79be0651cec59d373148179b347e84231b670f53565dee2c16c62b401a36da65

See more details on using hashes here.

Provenance

File details

Details for the file msg2apps-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: msg2apps-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 2.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.1 pkginfo/1.7.0 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.7.7

File hashes

Hashes for msg2apps-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 739a68d6a781e36ccf17100020d3a85d8b66445abc0acefde69ed0e3dc347438
MD5 f0f20fe2fe246a003c6dd8634bb8f31e
BLAKE2b-256 7788aaf7320df06d4c0a162cccadfa2c924ba19ca48b1d9dba6ecb8c0764a054

See more details on using hashes here.

Provenance

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