[PR #705] [MERGED] feat: telegram check addrss exists #710

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

📋 Pull Request Information

Original PR: https://github.com/dreamhunter2333/cloudflare_temp_email/pull/705
Author: @dreamhunter2333
Created: 8/8/2025
Status: Merged
Merged: 8/8/2025
Merged by: @dreamhunter2333

Base: mainHead: feature/dev


📝 Commits (1)

  • dc15b62 feat: telegram check addrss exists

📊 Changes

2 files changed (+13 additions, -5 deletions)

View changed files

📝 worker/src/telegram_api/common.ts (+9 -1)
📝 worker/src/telegram_api/telegram.ts (+4 -4)

📄 Description

PR Type

Enhancement, Bug fix


Description

  • Added validation to check if an address exists in the database.

  • Improved error messages for binding and cleaning invalid addresses.

  • Fixed typos in command names and descriptions for Telegram bot commands.

  • Updated logic for handling invalid JWTs and addresses.


Changes walkthrough 📝

Relevant files
Enhancement
common.ts
Enhance address validation and error handling                       

worker/src/telegram_api/common.ts

  • Added database query to validate address existence.
  • Updated error handling for invalid JWTs and addresses.
  • Improved error message for exceeding address binding limit.
  • +9/-1     
    Bug fix
    telegram.ts
    Fix command typos and improve Telegram bot logic                 

    worker/src/telegram_api/telegram.ts

  • Fixed typo in "cleaninvalidaddress" command name and description.
  • Corrected command logic for deleting addresses.
  • Updated error handling for Telegram bot commands.
  • +4/-4     

    Need help?
  • Type /help how to ... in the comments thread for any questions about PR-Agent usage.
  • Check out the documentation for more 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/705 **Author:** [@dreamhunter2333](https://github.com/dreamhunter2333) **Created:** 8/8/2025 **Status:** ✅ Merged **Merged:** 8/8/2025 **Merged by:** [@dreamhunter2333](https://github.com/dreamhunter2333) **Base:** `main` ← **Head:** `feature/dev` --- ### 📝 Commits (1) - [`dc15b62`](https://github.com/dreamhunter2333/cloudflare_temp_email/commit/dc15b627943cf1388a784ccc81fe54c4289f7270) feat: telegram check addrss exists ### 📊 Changes **2 files changed** (+13 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `worker/src/telegram_api/common.ts` (+9 -1) 📝 `worker/src/telegram_api/telegram.ts` (+4 -4) </details> ### 📄 Description ### **PR Type** Enhancement, Bug fix ___ ### **Description** - Added validation to check if an address exists in the database. - Improved error messages for binding and cleaning invalid addresses. - Fixed typos in command names and descriptions for Telegram bot commands. - Updated logic for handling invalid JWTs and addresses. ___ ### **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 address validation and error handling</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </dd></summary> <hr> worker/src/telegram_api/common.ts <li>Added database query to validate address existence.<br> <li> Updated error handling for invalid JWTs and addresses.<br> <li> Improved error message for exceeding address binding limit. </details> </td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/705/files#diff-962b7426663cb9f82119a7691d62d1401a72e3c85654a12b7b21e014d1414eab">+9/-1</a>&nbsp; &nbsp; &nbsp; </td> </tr> </table></td></tr><tr><td><strong>Bug fix</strong></td><td><table> <tr> <td> <details> <summary><strong>telegram.ts</strong><dd><code>Fix command typos and improve Telegram bot logic</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </dd></summary> <hr> worker/src/telegram_api/telegram.ts <li>Fixed typo in "cleaninvalidaddress" command name and description.<br> <li> Corrected command logic for deleting addresses.<br> <li> Updated error handling for Telegram bot commands. </details> </td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/705/files#diff-a62d9c6ad0b04691396db4eecb38680ea80a2690f021e18baa6012ad525a27d3">+4/-4</a>&nbsp; &nbsp; &nbsp; </td> </tr> </table></td></tr></tr></tbody></table> ___ > <details> <summary> Need help?</summary><li>Type <code>/help how to ...</code> in the comments thread for any questions about PR-Agent usage.</li><li>Check out the <a href="https://qodo-merge-docs.qodo.ai/usage-guide/">documentation</a> for more information.</li></details> --- <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:36 +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#710
    No description provided.