-
Notifications
You must be signed in to change notification settings - Fork 0
API For Python Script
Ali Rahmati edited this page Nov 19, 2023
·
3 revisions
API usage of the python script
In the latest update of the python proxy installer script I added the API support. In this page we will learn how to use it and which commands can be executed as API. Why API?
Good question. Imagine you are writing a MTProto bot or website. You need to continuously add and revoke secrets. And you do not want to write a wrapper for it. In this case you can use the API that this scripts provides for you.
API calls are just running this script with specific arguments. How to use API Return object
The script always return this result on any api call:
{
"ok":boolen,
"msg":object
}