n5y · GitHub

Most examples use the same error handler, that error handler logs
update.to_dict but doesn't log error traceback. Hiding error traceback
is quite bad, removing the error handler entirely causes PTB to use
default error logging which does include error traceback.

@Poolitzer

added 3 commits

June 8, 2020 09:28
Including:
- Change the telegram message to include usual python error message.
- HTML-escape the strings used to build the telegram message.
- Capitalize comments and add more empty lines to hopefully unify the
  style with other examples, at least a bit.
- Reorder imports.

Bibo-Joshi

Bibo-Joshi

@n5y

Bibo-Joshi

Otherwise the example will require two edits 40 lines apart to run.
The example requires you to set developer chat id, this change will
make things easier for users that don't know how to see their chat id.

@n5y

Poolitzer

@Bibo-Joshi

@Bibo-Joshi

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators

Aug 17, 2020

Read the original on github.com ↗