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.0rc7
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.0rc7.tar.gz | 19.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| dialog_bot_sdk-2.3.0rc7-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 52.9 kB
Release files / dialog-bot-sdk-2.3.0rc7.tar.gz
| Download URL | dialog-bot-sdk-2.3.0rc7.tar.gz |
|---|---|
| Size | 19.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4842d80f8cddc34a5bac995bf513e9d4217b62fada827a066680766d8451ffb1
|
|
BLAKE2b-256 checksum How to use checksums |
c16455a06da91339bfa524312519c3822a73e7c5d9cdad7b4e7c45e632eba884
|
| 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.8.0
|
Release files / dialog_bot_sdk-2.3.0rc7-py3-none-any.whl
| Download URL | dialog_bot_sdk-2.3.0rc7-py3-none-any.whl |
|---|---|
| Size | 33.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9739790330084e908f803dd56e02de5dadb27fdaaba833aba9cb9c012359f034
|
|
BLAKE2b-256 checksum How to use checksums |
bb74f42d1162df07f8799e2113c475255e65ce61a8efcf056be27fa6875b24bc
|
| 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.8.0
|