How would i implement a '/repeat' last command? #2260
Unanswered
DonKannalie
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Not an issue! Just a question...
Please answer these questions before submitting your issue. Thanks!
What version of pyTelegramBotAPI are you using?
4.17.0
What OS are you using?
Ubuntu 22.04
What version of python are you using?
3.10.12
How would i implement a '/repeat' last command?
Kinda simplified pseudocode example:
/repeat works, I can just click the forwarded message and it repeats the command
I also have a command that can be run either as '/info' (as a reply to a message) or as '/info item' to query info for 'item'.
send "/info item" as message

OR: send "/info" as a reply to a message

Does not work, as the forwarded 'command' only hotlinks "/info" not "/info item"
Same goes with the reply-type command...
For clarification: I want to run the same command on 'item' again, not save the previous result and return the saved result when running '/repeat'.
Beta Was this translation helpful? Give feedback.
All reactions