Telegram Bot API
Backend & InfraWe have made you a wrapper you can't refuse
Release History
v22.6Version v22.6 has been released. Users are encouraged to upgrade using pip.
v22.5Version v22.5 has been released. Users are encouraged to upgrade using pip.
v22.4Version v22.4 has been released. Upgrade instructions are provided.
v22.3Version v22.3 has been released. Thank you to all contributors for this update.
v22.2Version v22.2 has been released. Upgrade instructions are provided.
v22.1v22.1 has been released. Upgrade instructions are provided.
v22.0Version v22.0 has been released. Upgrade instructions are provided.
v21.11.11 fixVersion 21.11.1 primarily addresses documentation build issues. More details are available in the news channel.
v21.112 fixes6 featuresVersion 21.11 introduces full support for Bot API 8.3 and adds several quality-of-life improvements, including optional arguments and better timedelta handling, while removing the deprecated `hide_url` attribute.
Common Errors
NewConnectionError1 reportNewConnectionError in telegram-bot-api usually signifies that your bot cannot establish a connection to Telegram's servers, commonly due to network issues or an incorrect bot token. Verify your internet connection and ensure that the bot token in your code is correct and that you don't have any firewall rules blocking the traffic. If the issue persists, consider using a proxy server or VPN if Telegram is blocked in your region.
InvalidManifestError1 reportInvalidManifestError in telegram-bot-api often stems from incorrect or unsupported values within `.pre-commit-config.yaml` or hook-specific files like `.pre-commit-hooks.yaml`. Specifically, `stages`, `language`, or `types` might contain invalid entries. Review these files carefully, ensuring all values align with pre-commit's documentation and any hook-specific requirements (e.g., valid stage names, supported languages, correct file types); fix inconsistencies to resolve the error.
PassportElementError1 reportThe "PassportElementError" in telegram-bot-api often arises from incorrect or missing deserialization logic for specific Passport data types within custom `de_json` implementations. Ensure that all possible Passport element types (like personal_details, passport, driver_license, etc.) are correctly handled and deserialized according to the Telegram Passport API documentation in your `de_json` methods for any classes inheriting from Passport related models, especially if the subclass overrides or extends default de-serialization.
Related Backend & Infra Packages
Production-Grade Container Scheduling and Management
Node.js JavaScript runtime ✨🐢🚀✨
Promise based HTTP client for the browser and node.js
A modern runtime for JavaScript and TypeScript.
Deliver web apps with confidence 🚀
Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one
Subscribe to Updates
Get notified when new versions are released