Skip to content

Conversation

@ayazayyub
Copy link

@ayazayyub ayazayyub commented Apr 1, 2025

Description

  1. Completeness: Added missing parameters to set_webhook for full API support.
  2. Performance: Used requests.Session for HTTP connection reuse and simplified JSON handling.
  3. Robustness: Introduced custom exceptions to improve error handling clarity.

These changes make the library more feature-complete, efficient, and user-friendly.

Describe your tests

Okey 👍

Python version:
This version will work without errors in all Python versions ≥3.5.
OS:

Checklist:

  • I added/edited example on new feature/change (if exists)
  • My changes won't break backward compatibility
  • I made changes both for sync and async

Add support for `ip_address` and `drop_pending_updates` parameters in the `set_webhook` method to utilize the latest Telegram Bot API features.
Add support for `ip_address` and `drop_pending_updates` parameters in the `set_webhook` method to utilize the latest Telegram Bot API features.
Added missing parameters to `set_webhook` for full API support.
Used `requests.Session` for HTTP connection reuse and simplified JSON handling.
Introduced custom exceptions to improve error handling clarity.
Added missing parameters to `set_webhook` for full API support.
Used `requests.Session` for HTTP connection reuse and simplified JSON handling.
Introduced custom exceptions to improve error handling clarity.
These changes make the library more feature-complete, efficient, and user-friendly.
@ayazayyub ayazayyub closed this Apr 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant