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)

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dialog-bot-sdk-3.0.6.tar.gz (28.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dialog_bot_sdk-3.0.6-py3-none-any.whl (46.3 kB view details)

Uploaded Python 3

File details

Details for the file dialog-bot-sdk-3.0.6.tar.gz.

File metadata

  • Download URL: dialog-bot-sdk-3.0.6.tar.gz
  • Upload date:
  • Size: 28.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.8.0 tqdm/4.46.0 CPython/3.8.3

File hashes

Hashes for dialog-bot-sdk-3.0.6.tar.gz
Algorithm Hash digest
SHA256 0285ab78e4b919276f3b3c792d0245d5f426335a6cf4410a82f36454f4c14113
MD5 e1c31448fc5f0907becf25402fedfd8a
BLAKE2b-256 fa793b03985a51e949709e95920b1ce10d7b6222acd32c81f67a22ba39245093

See more details on using hashes here.

File details

Details for the file dialog_bot_sdk-3.0.6-py3-none-any.whl.

File metadata

  • Download URL: dialog_bot_sdk-3.0.6-py3-none-any.whl
  • Upload date:
  • Size: 46.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.8.0 tqdm/4.46.0 CPython/3.8.3

File hashes

Hashes for dialog_bot_sdk-3.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 d3531934d37ee67147b7fb50d13f711bd583b8906bba79d7af6f0fa800cddd9a
MD5 bc21c1b9bcb3237d9f9371afddf8a7bd
BLAKE2b-256 ef655f75eedaac8a1b295f42480ecd64a8614a598a2cccf44a4f98af95d2342b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page