Skip to content

Commit

Permalink
Fix request examples
Browse files Browse the repository at this point in the history
  • Loading branch information
rojvv committed Apr 11, 2024
1 parent 8fd8941 commit 346ad3c
Showing 1 changed file with 19 additions and 13 deletions.
32 changes: 19 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ is the same as this:
POST /:client-id/exampleMethod
Content-Type: application/json
[1, { "foo": false, "bar": true }]
[1, { "foo": false, "bar": true }]
```

> [!NOTE]
Expand Down Expand Up @@ -229,13 +229,15 @@ request.
Here is an example payload which makes a ping request:

```json
{
"_": "ping",
"ping_id": {
"_": "bigint",
"value": "123456"
[
{
"_": "ping",
"ping_id": {
"_": "bigint",
"value": "123456"
}
}
}
]
```

Which can be called like:
Expand All @@ -244,13 +246,15 @@ Which can be called like:
POST /:client-id/invoke
Content-Type: application/json
{
"_": "ping",
"ping_id": {
"_": "bigint",
"value": "123456"
[
{
"_": "ping",
"ping_id": {
"_": "bigint",
"value": "123456"
}
}
}
]
```

As you may have already inferred, the TL objects are described in JSON as
Expand Down Expand Up @@ -303,6 +307,8 @@ for `timeout` seconds.

```http
POST /:client-id/getUpdates
[]
```

On success, it returns an array of [Update](https://mtkru.to/types/Update)
Expand Down

0 comments on commit 346ad3c

Please sign in to comment.