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'
change_keyboard(to, keyboard)[source]
download_file(file_url, save_file_path)[source]
get_download_file_url(file_url)[source]
get_messages()[source]
get_upload_file_url()[source]
static make_keyboard(keyboard_data)[source]
send_attachment(to, file_url, file_name, file_size, caption='', keyboard=None)[source]
send_file(to, body, file_name, file_type, file_url, file_size, extra_params={})[source]
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_location(to, latitude, longitude, caption='', keyboard=None)[source]
send_message(post_data)[source]
send_text(to, text, 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]
send_voice(to, voice_file_url, voice_file_name, voice_file_size, voice_duration_in_milliseconds, caption='', keyboard=None)[source]
upload_file(file_path)[source]

Module contents

Top-level package for Soroush Python SDK.