Skip to main content

Python Bot SDK for Dialog Messenger

Project description

Dialog Python Bot SDK

Python Bot SDK for Dialog messenger.

Full documentation is available here.

Usage

from dialog_bot_sdk.bot import DialogBot
import grpc


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(
        'grpc-test.transmit.im:9443',  # bot endpoint
        grpc.ssl_channel_credentials(), # SSL credentials (empty by default!)
        'cbb4994cabfa8d2a5bce0b5f7a44c23da943f767'  # bot token
    )

    bot.messaging.on_message(on_msg)

License

Apache 2.0

Project details


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-1.0.1.tar.gz (157.5 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-1.0.1-py3-none-any.whl (200.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dialog-bot-sdk-1.0.1.tar.gz
  • Upload date:
  • Size: 157.5 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for dialog-bot-sdk-1.0.1.tar.gz
Algorithm Hash digest
SHA256 b0072dd4328265fcb13e43b9945b3bd74df5e2d0ed2e8751799edf3062b889a5
MD5 c7a56df2f4e45bc01eb436c1ffb29504
BLAKE2b-256 8a13ae5b562f4018853a8058c36aa883d7960c61531cc0c4a76f172f67fb3776

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dialog_bot_sdk-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 200.1 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for dialog_bot_sdk-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a153d70d9eadddadb1880c22d18f88804038fbd66efb10bdede2ee4217200ba7
MD5 a8a5b2a6695180ea8edd7aca2520bd75
BLAKE2b-256 ace531aa681964c697d8cc1b92ab45dd41d6a75c0e28753f9a2e760fa6515e5b

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 Pingdom Monitoring Sentry Error logging StatusPage Status page