Pre-release
This release is a pre-release and may not be stable for production use.
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
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.3.0rc5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| dialog-bot-sdk-2.3.0rc5.tar.gz | 18.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| dialog_bot_sdk-2.3.0rc5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 51.1 kB
Release files / dialog-bot-sdk-2.3.0rc5.tar.gz
| Download URL | dialog-bot-sdk-2.3.0rc5.tar.gz |
|---|---|
| Size | 18.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a36dabafe0b92fcb6baeb0a881940f2eb1c35c585b491b8527da39c4e34182c1
|
|
BLAKE2b-256 checksum How to use checksums |
bcf47211d4700cac1e365bb31448e28aec87dc40ec7f8aa6e281023cffdc9279
|
| 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.4.0 requests-toolbelt/0.8.0 tqdm/4.36.1 CPython/3.7.4
|
Release files / dialog_bot_sdk-2.3.0rc5-py3-none-any.whl
| Download URL | dialog_bot_sdk-2.3.0rc5-py3-none-any.whl |
|---|---|
| Size | 32.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7b9b163d8d0b542c9a65b6b238d6054fec56d20a466745205f500054cdf24a42
|
|
BLAKE2b-256 checksum How to use checksums |
782a88f507eb55f016e770683e1ca8169267e9d66182619f8896a81b3a8f7ab7
|
| 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.4.0 requests-toolbelt/0.8.0 tqdm/4.36.1 CPython/3.7.4
|