soroush_python_sdk package¶
Submodules¶
soroush_python_sdk.soroush_python_sdk module¶
Main module.
-
class
soroush_python_sdk.soroush_python_sdk.
Client
(token)[source]¶ -
BASE_URL
= 'https://bot.sapp.ir/'¶
-
DOWNLOAD_FILE_URL
= '/downloadFile/'¶
-
GET_MESSAGE_URL
= '/getMessage'¶
-
HEADERS
= {'Accept': 'Application/json', 'Content-Type': 'Application/json'}¶
-
RETRY_DELAY
= 10¶
-
SEND_MESSAGE_URL
= '/sendMessage'¶
-
UPLOAD_FILE_URL
= '/uploadFile'¶
-
send_gif
(to, image_file_url, image_file_name, image_file_size, image_width=0, image_height=0, thumbnail_file_url=None, caption='', keyboard=None)[source]¶
-
send_image
(to, image_file_url, image_file_name, image_file_size, image_width=0, image_height=0, thumbnail_file_url=None, caption='', keyboard=None)[source]¶
-
send_video
(to, video_file_url, video_file_name, video_file_size, video_duration_in_milliseconds, video_width=0, video_height=0, thumbnail_file_url=None, caption='', keyboard=None)[source]¶
-
Module contents¶
Top-level package for Soroush Python SDK.