kozalosev / DickGrowerBot

Who has the biggest dick ever? A game bot for Telegram
https://t.me/DickGrowerBot
Other
10 stars 3 forks source link

Log the text of a message when request is failed #52

Open kozalosev opened 1 month ago

kozalosev commented 1 month ago

There is an example of such logging for inline queries, implemented in commit d3c2a87a9c3aa1a571956ed1e3866e1a64012107.

Make a wrapper over JsonRequest to proxy sending but with logging in a case of an error to log the string caused the error. Or something like that. It would be nice to invent a smart general solution, not to modify each handler manually.