update API.md add Message type description

This commit is contained in:
Horhik 2021-04-23 22:01:56 +03:00
parent 4926b3fdc5
commit 5f6e717503
5 changed files with 36 additions and 2 deletions

View file

@ -186,6 +186,16 @@
<!-- ## Adding friends -->
<!-- Each user have :w -->
<hr />
<h1 id="message-type"><a class="header" href="#message-type">Message type</a></h1>
<pre><code class="language-json"> {
message: it's a message,
date: Time,
id: Id,
fromMe: bool,
}
}
</code></pre>
<hr />
<h1 id="requests"><a class="header" href="#requests">Requests</a></h1>
<pre><code class="language-Rust">pub enum Request {
StartApp,

View file

@ -226,6 +226,16 @@ EndMessage
<!-- ## Adding friends -->
<!-- Each user have :w -->
<hr />
<h1 id="message-type"><a class="header" href="#message-type">Message type</a></h1>
<pre><code class="language-json"> {
message: it's a message,
date: Time,
id: Id,
fromMe: bool,
}
}
</code></pre>
<hr />
<h1 id="requests"><a class="header" href="#requests">Requests</a></h1>
<pre><code class="language-Rust">pub enum Request {
StartApp,

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -28,6 +28,19 @@
----
# Message type
``` json
{
message: it's a message,
date: Time,
id: Id,
fromMe: bool,
}
}
```
---
# Requests
``` Rust
pub enum Request {
@ -100,3 +113,4 @@ Requesting `count` messages from `userId` started from `startIndex`'s message
startIndex: 30
}
```