A module for sending messages to communication apps
Project description
msg2apps
A python module for sending messages to communication apps
Support apps
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.