-
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.
Added
sendContact
, sendDice
, sendChatAction
, `getUserProfilePho…
…tos` and `getFile` methoods.
- Loading branch information
Showing
7 changed files
with
228 additions
and
18 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
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,22 @@ | ||
/** | ||
* This object represents a file ready to be downloaded. The file can be downloaded via the link https://api.telegram.org/file/bot<token>/<file_path>. It is guaranteed that the link will be valid for at least 1 hour. When the link expires, a new one can be requested by calling getFile. | ||
*/ | ||
|
||
export interface IFile { | ||
/** | ||
* Identifier for this file, which can be used to download or reuse the file | ||
*/ | ||
file_id: string; | ||
/** | ||
* Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file. | ||
*/ | ||
file_unique_id: string; | ||
/** | ||
* Optional. File size in bytes, if known | ||
*/ | ||
file_size?: number; | ||
/** | ||
* Optional. File path. Use https://api.telegram.org/file/bot<token>/<file_path> to get the file. | ||
*/ | ||
file_path?: string; | ||
} |
Oops, something went wrong.