Main¶
All main classes are listed here.
-
class
main.MsgSender(msg: str, google_chat_webhook_urls: Union[str, list], connection_limit: int = 100)¶ A class to send simply send messages via Google Chat Webhooks.
Send a message to one or multiple google chat webhook urls. It uses aiohttp and asyncio to send the requests in an async matter.
- Parameters
msg (str) – The message to send to Google Chats.
google_chat_webhook_urls (typing.Union[str, list]) – A single URL or list of URLs of Google Chat Incoming Webhooks.
connection_limit (int) – The maximum number of connections. Defaults to 100.
-
send() → list¶ Will send the message to the google chat webhooks.
- Returns
A list of requests responses as json representation.
- Return type
list