Skip to main content

Dialog Python Bot SDK

PyPI PyPI - License PyPI - Downloads

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

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.0.0
File Size Uploaded Provenance Actions
dialog-bot-sdk-2.0.0.tar.gz 160.3 kB Without provenance Details for dialog-bot-sdk-2.0.0.tar.gz

Built distribution (wheel)

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

Total release size: 363.0 kB

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

Download URL dialog-bot-sdk-2.0.0.tar.gz
Size 160.3 kB
Tags Source
SHA-256 checksum
How to use checksums
0ece759ca1bd86652719e44a5acb0077b7037f9ab256ae7cccc9f731684b478e
BLAKE2b-256 checksum
How to use checksums
8ae1947b2a143f40d0014838a19897aeb4764e1a0a08c8895e4171b7bd4e4927
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.5.0.1 requests/2.20.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.7.1

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

Download URL dialog_bot_sdk-2.0.0-py3-none-any.whl
Size 202.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ee971dc31ca209e50c5b173b43dafdb1ad5d303de67b1fb18568bb61193605cd
BLAKE2b-256 checksum
How to use checksums
232433f3cec40790172460a9847a664b724fe433f159533aea2ae5c1787e87c9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.5.0.1 requests/2.20.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.7.1

Security for dialog-bot-sdk 2.0.0

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