Skip to content

Commit

Permalink
[Build]
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Jan 13, 2025
1 parent 89906a1 commit 03b4040
Show file tree
Hide file tree
Showing 12 changed files with 242 additions and 1 deletion.

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions src/gh/methods.md
Original file line number Diff line number Diff line change
Expand Up @@ -1198,6 +1198,14 @@ Start a video chat. User-only.
Block a user. User-only.


</div></div>
<div class="descr-list-border"></div>
<a href="/gh/methods/getgifts">getGifts</a>
<div><div>

Get available gifts.


</div></div>
<div class="descr-list-border"></div>
<a href="/gh/methods/getnetworkstatistics">getNetworkStatistics</a>
Expand Down
19 changes: 19 additions & 0 deletions src/gh/methods/getgifts.md
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();
```



7 changes: 7 additions & 0 deletions src/gh/types.md
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,13 @@ A document.

A game.

</div></div>
<div class="descr-list-border"></div>
<a href="/gh/types/gift">Gift</a>
<div><div>

A gift.

</div></div>
<div class="descr-list-border"></div>
<a href="/gh/types/giveaway">Giveaway</a>
Expand Down
9 changes: 9 additions & 0 deletions src/gh/types/gift.md
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>

55 changes: 55 additions & 0 deletions src/gh/types/giftnonupgraded.md
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>&quot;nonupgraded&quot;</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>

39 changes: 39 additions & 0 deletions src/gh/types/giftupgraded.md
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>&quot;upgraded&quot;</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>

12 changes: 12 additions & 0 deletions src/gh/types/giftupgradedcomponent.md
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>

35 changes: 35 additions & 0 deletions src/gh/types/giftupgradedcomponentbackdrop.md
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>&quot;backdrop&quot;</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>

23 changes: 23 additions & 0 deletions src/gh/types/giftupgradedcomponentmodel.md
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>&quot;model&quot;</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>

11 changes: 11 additions & 0 deletions src/gh/types/giftupgradedcomponentoriginaldetails.md
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>&quot;originalDetails&quot;</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>

23 changes: 23 additions & 0 deletions src/gh/types/giftupgradedcomponentpattern.md
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>&quot;pattern&quot;</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>

0 comments on commit 03b4040

Please sign in to comment.