Skip to content

Commit

Permalink
Fixed mark code
Browse files Browse the repository at this point in the history
  • Loading branch information
Laky-64 committed Nov 5, 2023
1 parent 7c96003 commit 036d2b7
Show file tree
Hide file tree
Showing 21 changed files with 24 additions and 24 deletions.
2 changes: 1 addition & 1 deletion NTgCalls/Advanced Methods/ntg_calls.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
The function populates this list with data for active group calls and returns the number of group calls retrieved.
</text>
<h3>Example</h3>
<syntax-highlight language="c" mark="4">
<syntax-highlight language="c" mark="10">
#include &lt;stdint.h&gt;
#include "ntgcalls.h"

Expand Down
2 changes: 1 addition & 1 deletion NTgCalls/Advanced Methods/ntg_calls_count.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
This function returns the number of active group calls that NTgCalls is connected to.
</text>
<h3>Example</h3>
<syntax-highlight language="c" mark="4">
<syntax-highlight language="c" mark="9">
#include &lt;stdint.h&gt;
#include "ntgcalls.h"

Expand Down
2 changes: 1 addition & 1 deletion NTgCalls/Advanced Methods/ntg_get_state.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<h1>ntg_get_state</h1>
<config id="GET_STATE_DESC"/>
<h3>Example</h3>
<syntax-highlight language="c" mark="4">
<syntax-highlight language="c" mark="10">
#include &lt;stdint.h&gt;
#include "ntgcalls.h"

Expand Down
2 changes: 1 addition & 1 deletion NTgCalls/Basic Methods/Connect.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<h1>Connect</h1>
<config id="CONNECT_DESC"/>
<h3>Example</h3>
<syntax-highlight mark="7-10">
<syntax-highlight mark="8-11">
from ntgcalls import NTgCalls
...

Expand Down
2 changes: 1 addition & 1 deletion NTgCalls/Basic Methods/Create Call.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<h1>Create Call</h1>
<config id="CREATE_DESC"/>
<h3>Example</h3>
<syntax-highlight mark="6-15">
<syntax-highlight mark="6-17">
from ntgcalls import NTgCalls
...

Expand Down
2 changes: 1 addition & 1 deletion NTgCalls/Basic Methods/ntg_connect.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<h1>ntg_connect</h1>
<config id="CONNECT_DESC"/>
<h3>Example</h3>
<syntax-highlight language="c" mark="4">
<syntax-highlight language="c" mark="10">
#include &lt;stdint.h&gt;
#include "ntgcalls.h"

Expand Down
2 changes: 1 addition & 1 deletion NTgCalls/Basic Methods/ntg_get_params.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<h1>ntg_get_params</h1>
<config id="CREATE_DESC"/>
<h3>Example</h3>
<syntax-highlight language="c" mark="4">
<syntax-highlight language="c" mark="13-14">
#include &lt;stdint.h&gt;
#include "ntgcalls.h"

Expand Down
2 changes: 1 addition & 1 deletion NTgCalls/Basic Methods/ntg_stop.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<h1>ntg_stop</h1>
<config id="STOP_DESC"/>
<h3>Example</h3>
<syntax-highlight language="c" mark="4">
<syntax-highlight language="c" mark="10">
#include &lt;stdint.h&gt;
#include "ntgcalls.h"

Expand Down
8 changes: 4 additions & 4 deletions NTgCalls/Callbacks.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@
<subtext>
<config id="CALLBACK_END_DESC"/>
<h3>Example</h3>
<syntax-highlight mark="4-5">
<syntax-highlight mark="4-7">
...
app = NTgCalls()
...
def handler(chat_id: int, update: StreamType):
print(chat_id, update)
...
...
app.on_stream_end(handler)
</syntax-highlight>
</subtext>
Expand All @@ -28,13 +28,13 @@
<subtext>
<config id="CALLBACK_UPGRADE_DESC"/>
<h3>Example</h3>
<syntax-highlight mark="4-5">
<syntax-highlight mark="4-7">
...
app = NTgCalls()
...
def handler(chat_id: int, update: MediaState):
print(chat_id, update)
...
...
app.on_upgrade(handler)
</syntax-highlight>
</subtext>
Expand Down
2 changes: 1 addition & 1 deletion NTgCalls/Getting Started.xml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
</text>
<subtext>
<h3>Example</h3>
<syntax-highlight language="c" mark="4">
<syntax-highlight language="c" mark="6">
#include "ntgcalls.h"
#include &lt;stdio.h&gt;

Expand Down
2 changes: 1 addition & 1 deletion NTgCalls/Stream Methods/Change Stream.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<h1>Change Stream</h1>
<config id="CHANGE_STREAM_DESC"/>
<h3>Example</h3>
<syntax-highlight mark="6-15">
<syntax-highlight mark="6-17">
from ntgcalls import NTgCalls
...

Expand Down
2 changes: 1 addition & 1 deletion NTgCalls/Stream Methods/ntg_change_stream.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<h1>ntg_change_stream</h1>
<config id="CHANGE_STREAM_DESC"/>
<h3>Example</h3>
<syntax-highlight language="c" mark="4">
<syntax-highlight language="c" mark="13">
#include &lt;stdint.h&gt;
#include "ntgcalls.h"

Expand Down
2 changes: 1 addition & 1 deletion NTgCalls/Stream Methods/ntg_mute.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<h1>ntg_mute</h1>
<config id="MUTE_DESC"/>
<h3>Example</h3>
<syntax-highlight language="c" mark="4">
<syntax-highlight language="c" mark="9">
#include &lt;stdint.h&gt;
#include "ntgcalls.h"

Expand Down
2 changes: 1 addition & 1 deletion NTgCalls/Stream Methods/ntg_pause.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<h1>ntg_pause</h1>
<config id="PAUSE_DESC"/>
<h3>Example</h3>
<syntax-highlight language="c" mark="4">
<syntax-highlight language="c" mark="9">
#include &lt;stdint.h&gt;
#include "ntgcalls.h"

Expand Down
2 changes: 1 addition & 1 deletion NTgCalls/Stream Methods/ntg_resume.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<h1>ntg_resume</h1>
<config id="RESUME_DESC"/>
<h3>Example</h3>
<syntax-highlight language="c" mark="4">
<syntax-highlight language="c" mark="9">
#include &lt;stdint.h&gt;
#include "ntgcalls.h"

Expand Down
2 changes: 1 addition & 1 deletion NTgCalls/Stream Methods/ntg_time.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<h1>ntg_time</h1>
<config id="TIME_DESC"/>
<h3>Example</h3>
<syntax-highlight language="c" mark="4">
<syntax-highlight language="c" mark="9">
#include &lt;stdint.h&gt;
#include "ntgcalls.h"

Expand Down
2 changes: 1 addition & 1 deletion NTgCalls/Stream Methods/ntg_unmute.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<h1>ntg_unmute</h1>
<config id="UNMUTE_DESC"/>
<h3>Example</h3>
<syntax-highlight language="c" mark="4">
<syntax-highlight language="c" mark="9">
#include &lt;stdint.h&gt;
#include "ntgcalls.h"

Expand Down
2 changes: 1 addition & 1 deletion PyTgCalls/Basic Methods/Start.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

... # Call API decorators / MTProto decorators

app.run()
app.start()
</syntax-highlight>
<separator/>
<h2>Details</h2>
Expand Down
2 changes: 1 addition & 1 deletion PyTgCalls/Custom Api.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
This page is about the CustomAPI class, which exposes high-level methods for easy access to the API.
</text>
<h3>Example</h3>
<syntax-highlight mark="1-10">
<syntax-highlight mark="3-10">
from pytgcalls import CustomApi

api = CustomApi()
Expand Down
2 changes: 1 addition & 1 deletion PyTgCalls/Decorators.xml
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@
<subtext><text>You have set too many decorators.</text></subtext>
</subtext>
<h3>Example</h3>
<syntax-highlight mark="4-5">
<syntax-highlight mark="4-10">
...
webserver = CustomApi(client)
...
Expand Down
2 changes: 1 addition & 1 deletion PyTgCalls/Media Devices.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
This functionality proves valuable when you intend to stream content from either your screen or microphone.
</text>
<h3>Example</h3>
<syntax-highlight mark="1-3">
<syntax-highlight mark="13-15">
from pytgcalls import Client
from pytgcalls import idle
from pytgcalls.media_devices import MediaDevices
Expand Down

0 comments on commit 036d2b7

Please sign in to comment.