Repository navigation
Send text from return statement of decorated function as reply from bot #1769
GlebYavorski
started this conversation in
Ideas
Replies: 7 comments 1 reply
|
I'll think about something similar |
0 replies
|
Will @alparo , @coder2020official Are you serious?! You want to save 20 letters with that?! |
0 replies
|
I never said that I'll implement it. But it could be something related to webhooks - webhook replying probably. We'll see. |
0 replies
|
@Badiboy, I mean that when I have logic like this: then with the proposed feature it can be done much easier, like: Maybe my scenario is too specific. I don't know. |
0 replies
My god. Soooo hard code... |
1 reply
|
Lol, you can even return this to save 4 lines. Anyway nothing uses this results... |
0 replies
|
@Badiboy, thanks for this hint, man! I will use this approach! |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Please answer these questions before submitting your issue. Thanks!
4.7.0
Win10
3.8.10
I have a proposal. Maybe it will be possible to implement following scenario:
It will help to decrease code nesting in bots, which main purpose is to send something back to the user for each bot command.
All reactions