A small package to simplify the creation of Google Chat Bots
Project description
Google Chat
A small package to simplify the creation of Google Chat Bots
Examples
Text Messages
To send a simple text message to a Google Chat webhook
from googlechatbot import GoogleChatBot
webhook_url = "https://chat.googleapis.com/v1/..."
bot = GoogleChatBot(webhook_url)
bot.send_text_message("test message")
Cards
To simplify card creation there is a builder
from googlechatbot import CardBuilder, GoogleChatBot
webhook_url = "https://chat.googleapis.com/v1/..."
bot = GoogleChatBot(webhook_url)
builder = CardBuilder()
builder.add_header("Title", "Subtitle", "https://example.com/images/image.png")
builder.create_section("My section")
builder.add_keyvalue_widget("Key","Value","STAR")
card = builder.build()
resp = bot.send_card_message(card)
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
googlechatbot-1.2.2.tar.gz
(7.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file googlechatbot-1.2.2.tar.gz.
File metadata
- Download URL: googlechatbot-1.2.2.tar.gz
- Upload date:
- Size: 7.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.9.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ee575c7db38bdca1a52dd9e8d5949a84aa0f68a0683b66e3bf7446e5b2d5bca1
|
|
| MD5 |
bdbd15994942d2381ce416616ad04bc4
|
|
| BLAKE2b-256 |
26b9c021d036aaa1e0f0b17454c8fbdc28b8b8abbe5997920f8bf057833034ed
|
File details
Details for the file googlechatbot-1.2.2-py3-none-any.whl.
File metadata
- Download URL: googlechatbot-1.2.2-py3-none-any.whl
- Upload date:
- Size: 7.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.9.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2bf3ff441a749bca56e5ef1fa815f32ca92db80b189618d084fc40dfc655744e
|
|
| MD5 |
ba010274c26c17d4caddcf6288e3dcb2
|
|
| BLAKE2b-256 |
a8444a0ba5bd17392e372a0da773e57990ce41860b2abe8c096034dc38d878f0
|