Skip to content

shenyizg/msg2apps

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

msg2apps

A python module for sending messages to communication apps

installation

Install via pypi.

pip3 install msg2apps

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

About

A python module for sending messages to communication apps

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages