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

Uploaded Source

Built Distribution

msg2apps-1.1.0-py3-none-any.whl (2.5 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