Comments (5)
Tried telebot.logger.setLevel(logging.CRITICAL + 1)
, but it just stopped doing logging, but it won't let me handle the error myself.
from pytelegrambotapi.
Set to debug to get full information.
from pytelegrambotapi.
I have my own exception handler and I catch and handle errors in it. telebot.async_telebot.ExceptionHandler
is sometimes called and sometimes not.
from pytelegrambotapi.
you can't handle connection errors with exception handler afaik
from pytelegrambotapi.
2024-02-08 17:17:14,295 (asyncio_helper.py:101 MainThread) ERROR - TeleBot: "Aiohttp ClientError: ClientConnectorError"
This error is raised when doing requests to Telegram. In two cases:
- When you make a request (like send_message). In this case you can handle it yourself when calling the function
- When update_requests are called. Here you can use ExceptionHandler to handle the errir.
Note, that it is re-raised as asyncio_helper.RequestTimeout exception, not Aiohttp ClientError. And the error logging will be done anyway.
from pytelegrambotapi.
Related Issues (20)
- An unmasked bot token is registered in the exclusion of connection to the Telegram API HOT 1
- Bot
- Globally set parse_mode doesn't apply to InputMedia class HOT 2
- Enable tracemalloc to get the object allocation traceback HOT 2
- inline_example HOT 8
- Where should I put apihelper.API_URL and when do I need to bot.log_out() HOT 34
- Problem when using `bot.retrieve_data` HOT 4
- Missing type hints in SimpleCustomFilter HOT 2
- Why there is problem? HOT 1
- Bot API update 7.3 HOT 5
- how do i respond to messages from business_message_handler? HOT 1
- how would i implement a repeat send command HOT 1
- Send message into channel or chat
- bot.copy_message() doesn't add reply_markup to messages HOT 1
- Check bot blocked exception HOT 1
- Unresolved attribute reference 'delete_chat_history' for class 'TeleBot' HOT 1
- @alv095
- I can't handle the exception telebot.apihelper.apitelgramexception HOT 1
- Issue with not defined type HOT 3
- Add catch exception method for bot being blocked HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pytelegrambotapi.