Send message to you by feishu bot.
Project description
feishubot
Send message to you by feishu bot
Usage
- Set environment FEISHU_APP_ID and FEISHU_APP_SECRET to use feishu api
- set FEISHU_PHONE or FEISHU_EMAIL or FEISHU_OPEN_ID for sending message to you
when environment was not set correctly, bot will be disable
Feature
- Send plain message
- Send file
- Send image
- Send video with cover
- Send audio
- Send simple card
Examples
from feishubot import bot
def test_send_text(self):
bot.send_text("This is a test message.")
def test_send_file(self):
with open(__file__, "rb") as f:
bot.send_file(f, "stream")
def test_send_image(self):
bot.send_image(requests.get("https://random.imagecdn.app/500/150").content)
def send_audio(self):
with open("test.opus", "rb") as f:
bot.send_audio(f)
def test_send_media(self):
with open("test.mp4", "rb") as f:
bot.send_media(f)
def test_send_card(self):
bot.send_card("This is a test **message**.", header="Test card")
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.
Source Distribution
feishubot2-0.0.1.tar.gz
(4.4 kB
view details)
Built Distribution
File details
Details for the file feishubot2-0.0.1.tar.gz
.
File metadata
- Download URL: feishubot2-0.0.1.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a297175b13302c01ae554bc9f16d8969a7df8bbfedeabe2434ae7f013866f471 |
|
MD5 | f361e286d1216fb3051690082fbdfdc4 |
|
BLAKE2b-256 | 74844115a5ed6a086366ee85ea1cb0cbdf8d0957310ee552db8ff6a5cd46eb67 |
File details
Details for the file feishubot2-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: feishubot2-0.0.1-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d2592dd70ea413d31c8c1938b96813c513ffd40813ab2c22e7ecec909cd90502 |
|
MD5 | f46d69d89e513cce0e9c6515b2a198e8 |
|
BLAKE2b-256 | 52f8e7733d0914b36e952e79ee2096de19a3bbca39d73a20d6a795c9eb974329 |