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.0rc9
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.0rc9.tar.gz | 19.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| dialog_bot_sdk-2.3.0rc9-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 51.9 kB
Release files / dialog-bot-sdk-2.3.0rc9.tar.gz
| Download URL | dialog-bot-sdk-2.3.0rc9.tar.gz |
|---|---|
| Size | 19.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fcee8a2a1dd0cea8c29bf2134cf8ed6914e84636db7f4cea1fe5755c6a1762b7
|
|
BLAKE2b-256 checksum How to use checksums |
a3ac365189540d6bc699a963b5a8d4388a04716adee2c868d895c8e18244672a
|
| 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.0rc9-py3-none-any.whl
| Download URL | dialog_bot_sdk-2.3.0rc9-py3-none-any.whl |
|---|---|
| Size | 32.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bd0965b0ff257a0ac426d37120d5194ad5e009ff957faea4e3ad22a7366f5fa5
|
|
BLAKE2b-256 checksum How to use checksums |
b5711b54dd42db032ca37881ea6c766a0be85a0ed8a68434fdfb7b4b410e15fd
|
| 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
|