[PR #543] [MERGED] feat: |Telegram Bot| add new command to clean invalid jwts #613

Closed
opened 2026-02-26 21:32:02 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/dreamhunter2333/cloudflare_temp_email/pull/543
Author: @dreamhunter2333
Created: 1/4/2025
Status: Merged
Merged: 1/4/2025
Merged by: @dreamhunter2333

Base: mainHead: feature/dev


📝 Commits (1)

  • bfcea00 feat: |Telegram Bot| add new command to clean invalid jwts

📊 Changes

3 files changed (+32 additions, -2 deletions)

View changed files

📝 CHANGELOG.md (+1 -0)
📝 worker/src/telegram_api/common.ts (+7 -2)
📝 worker/src/telegram_api/telegram.ts (+24 -0)

📄 Description

PR Type

enhancement


Description

  • Add new Telegram bot command to clean invalid JWTs.

  • Update jwtListToAddressData function to return invalid JWTs.

  • Modify Telegram bot commands list to include the new command.

  • Update CHANGELOG.md to reflect the new feature.


Changes walkthrough 📝

Relevant files
Enhancement
common.ts
Enhance `jwtListToAddressData` to handle invalid JWTs       

worker/src/telegram_api/common.ts

  • Update jwtListToAddressData to return invalid JWTs.
  • Add handling for invalid JWTs in the address list.
  • +7/-2     
    telegram.ts
    Add `cleaninvalidadress` command to Telegram bot                 

    worker/src/telegram_api/telegram.ts

  • Add new command cleaninvalidadress to Telegram bot.
  • Implement logic to clean invalid JWTs and update address list.
  • +24/-0   
    Documentation
    CHANGELOG.md
    Update CHANGELOG for new Telegram bot command                       

    CHANGELOG.md

    • Document new Telegram bot command for cleaning invalid JWTs.
    +1/-0     

    💡 PR-Agent usage: Comment /help "your question" on any pull request to receive relevant information


    🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

    ## 📋 Pull Request Information **Original PR:** https://github.com/dreamhunter2333/cloudflare_temp_email/pull/543 **Author:** [@dreamhunter2333](https://github.com/dreamhunter2333) **Created:** 1/4/2025 **Status:** ✅ Merged **Merged:** 1/4/2025 **Merged by:** [@dreamhunter2333](https://github.com/dreamhunter2333) **Base:** `main` ← **Head:** `feature/dev` --- ### 📝 Commits (1) - [`bfcea00`](https://github.com/dreamhunter2333/cloudflare_temp_email/commit/bfcea00b8429f680321b6a8db654b221207a2926) feat: |Telegram Bot| add new command to clean invalid jwts ### 📊 Changes **3 files changed** (+32 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+1 -0) 📝 `worker/src/telegram_api/common.ts` (+7 -2) 📝 `worker/src/telegram_api/telegram.ts` (+24 -0) </details> ### 📄 Description ### **PR Type** enhancement ___ ### **Description** - Add new Telegram bot command to clean invalid JWTs. - Update `jwtListToAddressData` function to return invalid JWTs. - Modify Telegram bot commands list to include the new command. - Update CHANGELOG.md to reflect the new feature. ___ ### **Changes walkthrough** 📝 <table><thead><tr><th></th><th align="left">Relevant files</th></tr></thead><tbody><tr><td><strong>Enhancement</strong></td><td><table> <tr> <td> <details> <summary><strong>common.ts</strong><dd><code>Enhance `jwtListToAddressData` to handle invalid JWTs</code>&nbsp; &nbsp; &nbsp; &nbsp; </dd></summary> <hr> worker/src/telegram_api/common.ts <li>Update <code>jwtListToAddressData</code> to return invalid JWTs.<br> <li> Add handling for invalid JWTs in the address list. </details> </td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/543/files#diff-962b7426663cb9f82119a7691d62d1401a72e3c85654a12b7b21e014d1414eab">+7/-2</a>&nbsp; &nbsp; &nbsp; </td> </tr> <tr> <td> <details> <summary><strong>telegram.ts</strong><dd><code>Add `cleaninvalidadress` command to Telegram bot</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </dd></summary> <hr> worker/src/telegram_api/telegram.ts <li>Add new command <code>cleaninvalidadress</code> to Telegram bot.<br> <li> Implement logic to clean invalid JWTs and update address list. </details> </td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/543/files#diff-a62d9c6ad0b04691396db4eecb38680ea80a2690f021e18baa6012ad525a27d3">+24/-0</a>&nbsp; &nbsp; </td> </tr> </table></td></tr><tr><td><strong>Documentation</strong></td><td><table> <tr> <td> <details> <summary><strong>CHANGELOG.md</strong><dd><code>Update CHANGELOG for new Telegram bot command</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </dd></summary> <hr> CHANGELOG.md - Document new Telegram bot command for cleaning invalid JWTs. </details> </td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/543/files#diff-06572a96a58dc510037d5efa622f9bec8519bc1beab13c9f251e97e657a9d4ed">+1/-0</a>&nbsp; &nbsp; &nbsp; </td> </tr> </table></td></tr></tr></tbody></table> ___ > 💡 **PR-Agent usage**: Comment `/help "your question"` on any pull request to receive relevant information --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
    kerem 2026-02-26 21:32:02 +03:00
    Sign in to join this conversation.
    No milestone
    No project
    No assignees
    1 participant
    Notifications
    Due date
    The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

    No due date set.

    Dependencies

    No dependencies set.

    Reference
    starred/cloudflare_temp_email#613
    No description provided.