-
Notifications
You must be signed in to change notification settings - Fork 3
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
Showing
9 changed files
with
177 additions
and
3 deletions.
There are no files selected for viewing
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
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,33 @@ | ||
import { Sticker } from './'; | ||
|
||
/** | ||
* ## Gift | ||
* This object represents a gift that can be sent by the bot. | ||
* @see https://core.telegram.org/bots/api#gift | ||
*/ | ||
export type Gift = { | ||
/** | ||
* Unique identifier of the gift | ||
*/ | ||
id: string; | ||
|
||
/** | ||
* The sticker that represents the gift | ||
*/ | ||
sticker: Sticker; | ||
|
||
/** | ||
* The number of Telegram Stars that must be paid to send the sticker | ||
*/ | ||
star_count: number; | ||
|
||
/** | ||
* Optional. The total number of the gifts of this type that can be sent; for limited gifts only | ||
*/ | ||
total_count?: number; | ||
|
||
/** | ||
* Optional. The number of remaining gifts of this type that can be sent; for limited gifts only | ||
*/ | ||
remaining_count?: number; | ||
}; |
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,13 @@ | ||
import { Gift } from './'; | ||
|
||
/** | ||
* ## Gifts | ||
* This object represent a list of gifts. | ||
* @see https://core.telegram.org/bots/api#gifts | ||
*/ | ||
export type Gifts = { | ||
/** | ||
* The list of gifts | ||
*/ | ||
gifts: Gift[]; | ||
}; |
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
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