CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/pypi-rocketchat-a-p-i

Python API wrapper for Rocket.Chat's REST API, enabling developers to programmatically interact with Rocket.Chat servers for chat automation, bot development, and integration purposes

Pending
Overview
Eval results
Files

assets.mddocs/

Assets

Server asset management for uploading and managing custom assets like logos, favicons, and other server branding elements.

Capabilities

Asset Management

def assets_set_asset(self, asset_name, file, **kwargs):
    """
    Set/upload a server asset.
    
    Parameters:
    - asset_name (str): Asset name (logo, favicon, etc.)
    - file (str): File path to upload
    
    Returns:
    requests.Response: Asset upload result
    """

def assets_unset_asset(self, asset_name, **kwargs):
    """
    Remove/unset a server asset.
    
    Parameters:
    - asset_name (str): Asset name to remove
    
    Returns:
    requests.Response: Asset removal result
    """

Common Asset Types

AssetTypes = [
    "logo",           # Server logo
    "favicon",        # Favicon
    "background",     # Background image
    "loginBackground" # Login background
]

Usage Examples

# Upload server logo
result = rocket.assets_set_asset(
    asset_name='logo',
    file='/path/to/logo.png'
)

# Upload favicon
rocket.assets_set_asset(
    asset_name='favicon',
    file='/path/to/favicon.ico'
)

# Remove asset
rocket.assets_unset_asset('background')

Install with Tessl CLI

npx tessl i tessl/pypi-rocketchat-a-p-i

docs

administration.md

assets.md

channels.md

chat.md

direct-messages.md

groups.md

index.md

integrations.md

livechat.md

miscellaneous.md

permissions.md

roles.md

rooms.md

settings.md

statistics.md

subscriptions.md

teams.md

users.md

tile.json