You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are several functions and modules in the helper directory that gets passed down the bot. In the end, the helper function even sends out messages via the bot.
I suggest to remove all occurrences of the bot from any helper function and let the bot functions only get called inside the handler functions. This way, the code can be even more DRY and would allow reuse of existing functions.
For example, currently the inline_query can not use the "message formating feature" of the sendDepartureMessage, because it automatically sends out a message which.
The text was updated successfully, but these errors were encountered:
There are several functions and modules in the helper directory that gets passed down the
bot
. In the end, the helper function even sends out messages via the bot.I suggest to remove all occurrences of the
bot
from any helper function and let thebot
functions only get called inside thehandler
functions. This way, the code can be even more DRY and would allow reuse of existing functions.For example, currently the
inline_query
can not use the "message formating feature" of thesendDepartureMessage
, because it automatically sends out a message which.The text was updated successfully, but these errors were encountered: