Skip to content

Commit 34a9325

Browse files
[Build]
1 parent cc83686 commit 34a9325

4 files changed

Lines changed: 91 additions & 1 deletion

File tree

doc/https:raw.githubusercontent.comMTKrutoMTKrutomainmod.ts.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

src/gh/methods.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2081,6 +2081,13 @@ Accept a secret chat.
20812081

20822082
Request a secret chat.
20832083

2084+
</div></div>
2085+
<div class="descr-list-border"></div>
2086+
<a href="/gh/methods/sendsecretlocation">sendSecretLocation</a>
2087+
<div><div>
2088+
2089+
Send a location to a secret chat.
2090+
20842091
</div></div>
20852092
<div class="descr-list-border"></div>
20862093
<a href="/gh/methods/sendsecretmessage">sendSecretMessage</a>
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
---
2+
title: sendSecretLocation
3+
parent: /methods
4+
metas:
5+
description: Send a location to a secret chat. User-only.
6+
---
7+
8+
Send a location to a secret chat.<span class="select-none"> <span class="inline-flex w-fit items-center" style="font-size:12px;white-space:nowrap;word-break:keep-all;"><span class="w-fit bg-dbt select-none text-fgt" style="padding:2px 8px;border-radius:12px;">USER-ONLY</span></span> </span>
9+
10+
### Parameters
11+
12+
<div class="flex flex-col gap-3"><div><div class="font-mono" id="p_id" data-anchor="true"><span class="font-bold">id</span><span class="opacity-50">:</span> <span>number</span></div><div class="pl-3"><div class="no-margin">
13+
14+
The identifier of a secret chat.
15+
16+
</div></div></div><div><div class="font-mono" id="p_latitude" data-anchor="true"><span class="font-bold">latitude</span><span class="opacity-50">:</span> <span>number</span></div><div class="pl-3"><div class="no-margin">
17+
18+
The location's latitude.
19+
20+
</div></div></div><div><div class="font-mono" id="p_longitude" data-anchor="true"><span class="font-bold">longitude</span><span class="opacity-50">:</span> <span>number</span></div><div class="pl-3"><div class="no-margin">
21+
22+
The location's longitude.
23+
24+
</div></div></div><div class="flex flex-col gap-3"><div><div class="flex gap-2"><div class="font-mono p" id="p_isSilent" data-anchor="true"><span class="font-bold">isSilent</span><span class="opacity-50"><span title="Optional" class="cursor-help">?</span>:</span> <span>boolean</span></div></div><div class="pl-3"><div class="no-margin">
25+
26+
Whether the message should be sent silently.
27+
28+
</div></div></div><div><div class="flex gap-2"><div class="font-mono p" id="p_replyToMessageId" data-anchor="true"><span class="font-bold">replyToMessageId</span><span class="opacity-50"><span title="Optional" class="cursor-help">?</span>:</span> <span>string</span></div></div><div class="pl-3"><div class="no-margin">
29+
30+
The identifier of a message to reply to.
31+
32+
</div></div></div><div><div class="flex gap-2"><div class="font-mono p" id="p_ttl" data-anchor="true"><span class="font-bold">ttl</span><span class="opacity-50"><span title="Optional" class="cursor-help">?</span>:</span> <span>number</span></div></div><div class="pl-3"><div class="no-margin">
33+
34+
The message's time-to-live.
35+
36+
</div></div></div><div><div class="flex gap-2"><div class="font-mono p" id="p_viaBot" data-anchor="true"><span class="font-bold">viaBot</span><span class="opacity-50"><span title="Optional" class="cursor-help">?</span>:</span> <span>string</span></div></div><div class="pl-3"><div class="no-margin">
37+
38+
The name of the bot that was used to send the message.
39+
40+
</div></div></div></div></div>
41+
42+
### Result
43+
44+
<div class="font-mono"><span>void</span></div>
45+
46+
### Syntax
47+
48+
```ts
49+
// Required parameters only.
50+
await client.sendSecretLocation(id, latitude, longitude);
51+
52+
// Required parameters + optional parameters.
53+
// Any of the optional parameters can be omitted.
54+
await client.sendSecretLocation(id, latitude, longitude, {
55+
isSilent,
56+
replyToMessageId,
57+
ttl,
58+
viaBot,
59+
});
60+
```
61+
62+
63+

src/gh/methods/sendsecretmessage.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,22 @@ The message's time-to-live.
3737

3838
The name of the bot that was used to send the message.
3939

40+
</div></div></div><div><div class="flex gap-2"><div class="font-mono p" id="p_isSilent" data-anchor="true"><span class="font-bold">isSilent</span><span class="opacity-50"><span title="Optional" class="cursor-help">?</span>:</span> <span>boolean</span></div></div><div class="pl-3"><div class="no-margin">
41+
42+
Whether the message should be sent silently.
43+
44+
</div></div></div><div><div class="flex gap-2"><div class="font-mono p" id="p_replyToMessageId" data-anchor="true"><span class="font-bold">replyToMessageId</span><span class="opacity-50"><span title="Optional" class="cursor-help">?</span>:</span> <span>string</span></div></div><div class="pl-3"><div class="no-margin">
45+
46+
The identifier of a message to reply to.
47+
48+
</div></div></div><div><div class="flex gap-2"><div class="font-mono p" id="p_ttl" data-anchor="true"><span class="font-bold">ttl</span><span class="opacity-50"><span title="Optional" class="cursor-help">?</span>:</span> <span>number</span></div></div><div class="pl-3"><div class="no-margin">
49+
50+
The message's time-to-live.
51+
52+
</div></div></div><div><div class="flex gap-2"><div class="font-mono p" id="p_viaBot" data-anchor="true"><span class="font-bold">viaBot</span><span class="opacity-50"><span title="Optional" class="cursor-help">?</span>:</span> <span>string</span></div></div><div class="pl-3"><div class="no-margin">
53+
54+
The name of the bot that was used to send the message.
55+
4056
</div></div></div></div></div>
4157

4258
### Result
@@ -57,6 +73,10 @@ await client.sendSecretMessage(id, text, {
5773
replyToMessageId,
5874
ttl,
5975
viaBot,
76+
isSilent,
77+
replyToMessageId,
78+
ttl,
79+
viaBot,
6080
});
6181
```
6282

0 commit comments

Comments
 (0)