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.peer, 'Reply to : ' + str(params.message.text_message.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_async(on_msg)

Metadata

Release files for dialog-bot-sdk 3.0.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 3.0.8
File Size Uploaded Provenance Actions
dialog-bot-sdk-3.0.8.tar.gz 28.2 kB Without provenance Details for dialog-bot-sdk-3.0.8.tar.gz

Built distribution (wheel)

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

Total release size: 74.6 kB

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

Download URL dialog-bot-sdk-3.0.8.tar.gz
Size 28.2 kB
Tags Source
SHA-256 checksum
How to use checksums
785171d84a09f568439ef5070abee34d1c4d2d55acc88f0f8be0619ecfbb75e9
BLAKE2b-256 checksum
How to use checksums
442aeb1a982708375e2b96e2a9fdfb4d553e430ff3538c2a3c842ac4fd2590e4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.9.0

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

Download URL dialog_bot_sdk-3.0.8-py3-none-any.whl
Size 46.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
365aa78bbb750b55ae78c646623fa70e205576871430d54747c92dcf4289d5fc
BLAKE2b-256 checksum
How to use checksums
3cd7fe77ea431e1d28f9b8bcc38b1459277f1935b48df602e709f216bfe4aa82
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.9.0

Security for dialog-bot-sdk 3.0.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

3.0.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