Skip to main content

Dialog Python Bot SDK

PyPI PyPI - Downloads PyPI - License

Python Bot SDK for Dialog messenger.

Full documentation is available here.

Usage

from dialog_bot_sdk.bot import DialogBot
import grpc
import os


def on_msg(*params):
    bot.messaging.send_message(
        params[0].peer, 'Reply to : ' + str(params[0].message.textMessage.text)
    )


if __name__ == '__main__':
    bot = DialogBot.get_secure_bot(
        os.environ.get('BOT_ENDPOINT'),  # bot endpoint from environment
        grpc.ssl_channel_credentials(), # SSL credentials (empty by default!)
        os.environ.get('BOT_TOKEN')  # bot token from environment
    )

    bot.messaging.on_message(on_msg)

Metadata

Release files for dialog-bot-sdk 2.2.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dialog-bot-sdk 2.2.8
File Size Uploaded Provenance Actions
dialog-bot-sdk-2.2.8.tar.gz 13.3 kB Without provenance Details for dialog-bot-sdk-2.2.8.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for dialog-bot-sdk 2.2.8
File Interpreter ABI Platform Actions
dialog_bot_sdk-2.2.8-py3-none-any.whl Python 3 none any Details for dialog_bot_sdk-2.2.8-py3-none-any.whl

Total release size: 35.0 kB

Release files / dialog-bot-sdk-2.2.8.tar.gz

Download URL dialog-bot-sdk-2.2.8.tar.gz
Size 13.3 kB
Tags Source
SHA-256 checksum
How to use checksums
b9c0b8a6d557a8518f97410e87d03eaa6234d89910d2c34ddbb62f0e0fe368ad
BLAKE2b-256 checksum
How to use checksums
e6469ea200fb2304e5340b1c333c8de5675069d3521094f25866558baa05882c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.8.0 tqdm/4.37.0 CPython/3.8.0

Release files / dialog_bot_sdk-2.2.8-py3-none-any.whl

Download URL dialog_bot_sdk-2.2.8-py3-none-any.whl
Size 21.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c068e334ca10d796282e648d1a3c5694dbc9ffeb18f708a340a57bcd32bd0a46
BLAKE2b-256 checksum
How to use checksums
f46158483e9f29bc57cbf8a9f90c77a1180ef7b296c6c6d0d1bdeae87a2939aa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.8.0 tqdm/4.37.0 CPython/3.8.0

Security for dialog-bot-sdk 2.2.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

2.2.8 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page