-
Notifications
You must be signed in to change notification settings - Fork 843
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #220 from TBXark/dev
Dev
- Loading branch information
Showing
11 changed files
with
71 additions
and
58 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"sha": "cca7cf8", "timestamp": 1696754346} | ||
{"sha": "3713d4d", "timestamp": 1697520630} |
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 |
---|---|---|
@@ -1 +1 @@ | ||
1696754346 | ||
1697520630 |
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
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/** | ||
* @typedef {Object} TelegramUser | ||
* @property {number} id - The ID of the user. | ||
* @property {boolean} is_bot - True, if the user is a bot. | ||
* @property {string} first_name - The first name of the user. | ||
* @property {string} [last_name] - The last name of the user. | ||
* @property {string} [username] - The username of the user. | ||
* @property {string} [language_code] - The language code of the user. | ||
*/ | ||
|
||
/** | ||
* @typedef {Object} TelegramChat | ||
* @property {number} id - The ID of the chat. | ||
* @property {string} type - The type of the chat. | ||
*/ | ||
|
||
/** | ||
* @typedef {Object} TelegramMessageEntity | ||
* @property {string} type - Type of the entity. | ||
* @property {number} offset - Offset in UTF-16 code units to the start of the entity. | ||
* @property {number} length - Length of the entity in UTF-16 code units. | ||
* @property {string} [url] - URL of the entity. | ||
* @property {TelegramUser} [user] - The user this entity refers to. | ||
*/ | ||
|
||
/** | ||
* @typedef {Object} TelegramMessage | ||
* @property {number} message_id - The message's unique identifier. | ||
* @property {TelegramUser} from - The user that sent the message. | ||
* @property {TelegramChat} chat - The chat where the message was sent. | ||
* @property {number} date - The date the message was sent. | ||
* @property {string} text - The text of the message. | ||
* @property {TelegramMessageEntity[]} [entities] - An array of message entities. | ||
* @property {TelegramMessage} [reply_to_message] - The message that this message is a reply to. | ||
*/ | ||
|
||
/** | ||
* @typedef {Object} TelegramWebhookRequest | ||
* @property {number} update_id - The update's unique identifier. | ||
* @property {TelegramMessage} message - The message | ||
* @property {TelegramMessage} edited_message - The edited message | ||
*/ |