-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
89906a1
commit 03b4040
Showing
12 changed files
with
242 additions
and
1 deletion.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
doc/https:raw.githubusercontent.comMTKrutoMTKrutomainmod.ts.json
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- | ||
title: getGifts | ||
--- | ||
|
||
Get available gifts. | ||
|
||
|
||
### Result | ||
|
||
<div class="font-mono"><a href="/gh/types/gift" >Gift</a><span class="opacity-50">[]</span></div> | ||
|
||
### Syntax | ||
|
||
```ts | ||
await client.getGifts(); | ||
``` | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
title: Gift | ||
--- | ||
|
||
A gift. | ||
|
||
<div class="font-mono whitespace-pre"><span class="opacity-50">| </span><a href="/gh/types/giftnonupgraded" >GiftNonUpgraded</a><span class="opacity-50"> | ||
| </span><a href="/gh/types/giftupgraded" >GiftUpgraded</a></div> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
--- | ||
title: GiftNonUpgraded | ||
--- | ||
|
||
An non-upgraded gift. | ||
|
||
|
||
### Properties | ||
|
||
<div class="flex flex-col gap-3"><div><div class="flex gap-2"><div class="font-mono p" id="p_type" data-anchor><span class="font-bold">type</span><span class="opacity-50">:</span> <span>"nonupgraded"</span></div><div class="flex items-center"><div class="bg-dbt px-1.5 rounded-md select-none text-fgt text-[10px]">DISCRIMINATOR</div></div></div></div><div><div class="flex gap-2"><div class="font-mono p" id="p_id" data-anchor><span class="font-bold">id</span><span class="opacity-50">:</span> <span>string</span></div></div><div class="pl-3"><div class="no-margin"> | ||
|
||
The identifier of the gift. | ||
|
||
</div></div></div><div><div class="flex gap-2"><div class="font-mono p" id="p_sticker" data-anchor><span class="font-bold">sticker</span><span class="opacity-50">:</span> <a href="/gh/types/sticker" >Sticker</a></div></div><div class="pl-3"><div class="no-margin"> | ||
|
||
The sticker that represents the gift. | ||
|
||
</div></div></div><div><div class="flex gap-2"><div class="font-mono p" id="p_price" data-anchor><span class="font-bold">price</span><span class="opacity-50">:</span> <span>number</span></div></div><div class="pl-3"><div class="no-margin"> | ||
|
||
The price of the sticker in Telegram Stars. | ||
|
||
</div></div></div><div><div class="flex gap-2"><div class="font-mono p" id="p_limited" data-anchor><span class="font-bold">limited</span><span class="opacity-50">:</span> <span>boolean</span></div></div><div class="pl-3"><div class="no-margin"> | ||
|
||
Whether the supply of this gift is limited. | ||
|
||
</div></div></div><div><div class="flex gap-2"><div class="font-mono p" id="p_remaining" data-anchor><span class="font-bold">remaining</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"> | ||
|
||
The remaining supply of the gift if limited. | ||
|
||
</div></div></div><div><div class="flex gap-2"><div class="font-mono p" id="p_total" data-anchor><span class="font-bold">total</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"> | ||
|
||
The total supply of the gift if limited. | ||
|
||
</div></div></div><div><div class="flex gap-2"><div class="font-mono p" id="p_soldOut" data-anchor><span class="font-bold">soldOut</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"> | ||
|
||
Whether the gift is sold out if limited. | ||
|
||
</div></div></div><div><div class="flex gap-2"><div class="font-mono p" id="p_birthday" data-anchor><span class="font-bold">birthday</span><span class="opacity-50">:</span> <span>boolean</span></div></div><div class="pl-3"><div class="no-margin"> | ||
|
||
Whether the gift is dedicated to birthdays. | ||
|
||
</div></div></div><div><div class="flex gap-2"><div class="font-mono p" id="p_conversionPrice" data-anchor><span class="font-bold">conversionPrice</span><span class="opacity-50">:</span> <span>number</span></div></div><div class="pl-3"><div class="no-margin"> | ||
|
||
The amount of Telegram Stars that the gift can be swapped with. | ||
|
||
</div></div></div><div><div class="flex gap-2"><div class="font-mono p" id="p_firstSaleDate" data-anchor><span class="font-bold">firstSaleDate</span><span class="opacity-50"><span title="Optional" class="cursor-help">?</span>:</span> <span href="/">Date</span></div></div><div class="pl-3"><div class="no-margin"> | ||
|
||
The date of the first sale of the gift if sold out. | ||
|
||
</div></div></div><div><div class="flex gap-2"><div class="font-mono p" id="p_lastSaleDate" data-anchor><span class="font-bold">lastSaleDate</span><span class="opacity-50"><span title="Optional" class="cursor-help">?</span>:</span> <span href="/">Date</span></div></div><div class="pl-3"><div class="no-margin"> | ||
|
||
The date of the last sale of the gift if sold out. | ||
|
||
</div></div></div></div> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
--- | ||
title: GiftUpgraded | ||
--- | ||
|
||
An upgraded gift. | ||
|
||
|
||
### Properties | ||
|
||
<div class="flex flex-col gap-3"><div><div class="flex gap-2"><div class="font-mono p" id="p_type" data-anchor><span class="font-bold">type</span><span class="opacity-50">:</span> <span>"upgraded"</span></div><div class="flex items-center"><div class="bg-dbt px-1.5 rounded-md select-none text-fgt text-[10px]">DISCRIMINATOR</div></div></div></div><div><div class="flex gap-2"><div class="font-mono p" id="p_id" data-anchor><span class="font-bold">id</span><span class="opacity-50">:</span> <span>string</span></div></div><div class="pl-3"><div class="no-margin"> | ||
|
||
The identifier of the gift. | ||
|
||
</div></div></div><div><div class="flex gap-2"><div class="font-mono p" id="p_title" data-anchor><span class="font-bold">title</span><span class="opacity-50">:</span> <span>string</span></div></div><div class="pl-3"><div class="no-margin"> | ||
|
||
The title of the gift. | ||
|
||
</div></div></div><div><div class="flex gap-2"><div class="font-mono p" id="p_index" data-anchor><span class="font-bold">index</span><span class="opacity-50">:</span> <span>number</span></div></div><div class="pl-3"><div class="no-margin"> | ||
|
||
The unique index of the gift among others of the same type. | ||
|
||
</div></div></div><div><div class="flex gap-2"><div class="font-mono p" id="p_ownerId" data-anchor><span class="font-bold">ownerId</span><span class="opacity-50">:</span> <span>number</span></div></div><div class="pl-3"><div class="no-margin"> | ||
|
||
The identifier of the user that owns the gift. | ||
|
||
</div></div></div><div><div class="flex gap-2"><div class="font-mono p" id="p_currentUpgrades" data-anchor><span class="font-bold">currentUpgrades</span><span class="opacity-50">:</span> <span>number</span></div></div><div class="pl-3"><div class="no-margin"> | ||
|
||
The count of the amount of upgraded gifts of the same type. | ||
|
||
</div></div></div><div><div class="flex gap-2"><div class="font-mono p" id="p_maxUpgrades" data-anchor><span class="font-bold">maxUpgrades</span><span class="opacity-50">:</span> <span>number</span></div></div><div class="pl-3"><div class="no-margin"> | ||
|
||
The maximum count of gifts of the same type that can be upgraded. | ||
|
||
</div></div></div><div><div class="flex gap-2"><div class="font-mono p" id="p_components" data-anchor><span class="font-bold">components</span><span class="opacity-50">:</span> <a href="/gh/types/giftupgradedcomponent" >GiftUpgradedComponent</a><span class="opacity-50">[]</span></div></div><div class="pl-3"><div class="no-margin"> | ||
|
||
The components of the gift. | ||
|
||
</div></div></div></div> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
title: GiftUpgradedComponent | ||
--- | ||
|
||
A component of an upgraded gift. | ||
|
||
|
||
<div class="font-mono whitespace-pre"><span class="opacity-50">| </span><a href="/gh/types/giftupgradedcomponentmodel" >GiftUpgradedComponentModel</a><span class="opacity-50"> | ||
| </span><a href="/gh/types/giftupgradedcomponentpattern" >GiftUpgradedComponentPattern</a><span class="opacity-50"> | ||
| </span><a href="/gh/types/giftupgradedcomponentbackdrop" >GiftUpgradedComponentBackdrop</a><span class="opacity-50"> | ||
| </span><a href="/gh/types/giftupgradedcomponentoriginaldetails" >GiftUpgradedComponentOriginalDetails</a></div> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
--- | ||
title: GiftUpgradedComponentBackdrop | ||
--- | ||
|
||
The backdrop of an upgraded gift. | ||
|
||
|
||
### Properties | ||
|
||
<div class="flex flex-col gap-3"><div><div class="flex gap-2"><div class="font-mono p" id="p_type" data-anchor><span class="font-bold">type</span><span class="opacity-50">:</span> <span>"backdrop"</span></div><div class="flex items-center"><div class="bg-dbt px-1.5 rounded-md select-none text-fgt text-[10px]">DISCRIMINATOR</div></div></div></div><div><div class="flex gap-2"><div class="font-mono p" id="p_name" data-anchor><span class="font-bold">name</span><span class="opacity-50">:</span> <span>string</span></div></div><div class="pl-3"><div class="no-margin"> | ||
|
||
The name of the backdrop. | ||
|
||
</div></div></div><div><div class="flex gap-2"><div class="font-mono p" id="p_centerColor" data-anchor><span class="font-bold">centerColor</span><span class="opacity-50">:</span> <span>number</span></div></div><div class="pl-3"><div class="no-margin"> | ||
|
||
The center color of the backdrop. | ||
|
||
</div></div></div><div><div class="flex gap-2"><div class="font-mono p" id="p_edgeColor" data-anchor><span class="font-bold">edgeColor</span><span class="opacity-50">:</span> <span>number</span></div></div><div class="pl-3"><div class="no-margin"> | ||
|
||
The edge color of the backdrop. | ||
|
||
</div></div></div><div><div class="flex gap-2"><div class="font-mono p" id="p_patternColor" data-anchor><span class="font-bold">patternColor</span><span class="opacity-50">:</span> <span>number</span></div></div><div class="pl-3"><div class="no-margin"> | ||
|
||
The pattern color of the backdrop. | ||
|
||
</div></div></div><div><div class="flex gap-2"><div class="font-mono p" id="p_textColor" data-anchor><span class="font-bold">textColor</span><span class="opacity-50">:</span> <span>number</span></div></div><div class="pl-3"><div class="no-margin"> | ||
|
||
The text color of the backdrop. | ||
|
||
</div></div></div><div><div class="flex gap-2"><div class="font-mono p" id="p_rarityLevel" data-anchor><span class="font-bold">rarityLevel</span><span class="opacity-50">:</span> <span>number</span></div></div><div class="pl-3"><div class="no-margin"> | ||
|
||
A number determining how rare this type of backdrop is out of a thousand of others. | ||
|
||
</div></div></div></div> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--- | ||
title: GiftUpgradedComponentModel | ||
--- | ||
|
||
The model of an upgraded gift. | ||
|
||
|
||
### Properties | ||
|
||
<div class="flex flex-col gap-3"><div><div class="flex gap-2"><div class="font-mono p" id="p_type" data-anchor><span class="font-bold">type</span><span class="opacity-50">:</span> <span>"model"</span></div><div class="flex items-center"><div class="bg-dbt px-1.5 rounded-md select-none text-fgt text-[10px]">DISCRIMINATOR</div></div></div></div><div><div class="flex gap-2"><div class="font-mono p" id="p_name" data-anchor><span class="font-bold">name</span><span class="opacity-50">:</span> <span>string</span></div></div><div class="pl-3"><div class="no-margin"> | ||
|
||
The name of the model. | ||
|
||
</div></div></div><div><div class="flex gap-2"><div class="font-mono p" id="p_sticker" data-anchor><span class="font-bold">sticker</span><span class="opacity-50">:</span> <a href="/gh/types/sticker" >Sticker</a></div></div><div class="pl-3"><div class="no-margin"> | ||
|
||
The sticker belonging to the model. | ||
|
||
</div></div></div><div><div class="flex gap-2"><div class="font-mono p" id="p_rarityLevel" data-anchor><span class="font-bold">rarityLevel</span><span class="opacity-50">:</span> <span>number</span></div></div><div class="pl-3"><div class="no-margin"> | ||
|
||
A number determining how rare this type of model is out of a thousand of others. | ||
|
||
</div></div></div></div> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
title: GiftUpgradedComponentOriginalDetails | ||
--- | ||
|
||
The original details of an upgraded gift. | ||
|
||
|
||
### Properties | ||
|
||
<div class="flex flex-col gap-3"><div><div class="flex gap-2"><div class="font-mono p" id="p_type" data-anchor><span class="font-bold">type</span><span class="opacity-50">:</span> <span>"originalDetails"</span></div><div class="flex items-center"><div class="bg-dbt px-1.5 rounded-md select-none text-fgt text-[10px]">DISCRIMINATOR</div></div></div></div><div><div class="flex gap-2"><div class="font-mono p" id="p_senderId" data-anchor><span class="font-bold">senderId</span><span class="opacity-50"><span title="Optional" class="cursor-help">?</span>:</span> <span>number</span></div></div></div><div><div class="flex gap-2"><div class="font-mono p" id="p_recipientId" data-anchor><span class="font-bold">recipientId</span><span class="opacity-50">:</span> <span>number</span></div></div></div><div><div class="flex gap-2"><div class="font-mono p" id="p_date" data-anchor><span class="font-bold">date</span><span class="opacity-50">:</span> <span href="/">Date</span></div></div></div><div><div class="flex gap-2"><div class="font-mono p" id="p_message" data-anchor><span class="font-bold">message</span><span class="opacity-50"><span title="Optional" class="cursor-help">?</span>:</span> <span>string</span></div></div></div><div><div class="flex gap-2"><div class="font-mono p" id="p_entities" data-anchor><span class="font-bold">entities</span><span class="opacity-50"><span title="Optional" class="cursor-help">?</span>:</span> <a href="/gh/types/messageentity" >MessageEntity</a><span class="opacity-50">[]</span></div></div></div></div> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--- | ||
title: GiftUpgradedComponentPattern | ||
--- | ||
|
||
The pattern of an upgraded gift. | ||
|
||
|
||
### Properties | ||
|
||
<div class="flex flex-col gap-3"><div><div class="flex gap-2"><div class="font-mono p" id="p_type" data-anchor><span class="font-bold">type</span><span class="opacity-50">:</span> <span>"pattern"</span></div><div class="flex items-center"><div class="bg-dbt px-1.5 rounded-md select-none text-fgt text-[10px]">DISCRIMINATOR</div></div></div></div><div><div class="flex gap-2"><div class="font-mono p" id="p_name" data-anchor><span class="font-bold">name</span><span class="opacity-50">:</span> <span>string</span></div></div><div class="pl-3"><div class="no-margin"> | ||
|
||
The name of the pattern. | ||
|
||
</div></div></div><div><div class="flex gap-2"><div class="font-mono p" id="p_sticker" data-anchor><span class="font-bold">sticker</span><span class="opacity-50">:</span> <a href="/gh/types/sticker" >Sticker</a></div></div><div class="pl-3"><div class="no-margin"> | ||
|
||
The sticker belonging to the pattern. | ||
|
||
</div></div></div><div><div class="flex gap-2"><div class="font-mono p" id="p_rarityLevel" data-anchor><span class="font-bold">rarityLevel</span><span class="opacity-50">:</span> <span>number</span></div></div><div class="pl-3"><div class="no-margin"> | ||
|
||
A number determining how rare this type of pattern is out of a thousand of others. | ||
|
||
</div></div></div></div> | ||
|