Open babaric-dev opened 1 year ago
Duplicate of #538 .
you can use this command
termux-notification --button1 "Answer" --button1-action "termux-toast \$REPLY"
If you're click reply button. The termux-toast
will be appeared according to the command
For more information about termux-notification
termux-notification -h
information about actions eg: --button1-action
termux-notification --help-actions
If it's works please close this issue
Feature description
I hope termux api can reply to notifications (i.e. whatsapp) and there are already bots doing so. So i think it shouldnt be that hard to implement
Nonetheless, the implementation may be useful for automation or bots
Reference implementation
Have you checked if the feature is accessible through the Android API? Do you know of other open-source apps that has a similar feature as the one you want? (Provide links)