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.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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0285ab78e4b919276f3b3c792d0245d5f426335a6cf4410a82f36454f4c14113
|
|
| MD5 |
e1c31448fc5f0907becf25402fedfd8a
|
|
| BLAKE2b-256 |
fa793b03985a51e949709e95920b1ce10d7b6222acd32c81f67a22ba39245093
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d3531934d37ee67147b7fb50d13f711bd583b8906bba79d7af6f0fa800cddd9a
|
|
| MD5 |
bc21c1b9bcb3237d9f9371afddf8a7bd
|
|
| BLAKE2b-256 |
ef655f75eedaac8a1b295f42480ecd64a8614a598a2cccf44a4f98af95d2342b
|