Improve tag feature
This commit is contained in:
parent
b150d7e0f7
commit
85accf176e
11
konata.sh
11
konata.sh
@ -279,7 +279,16 @@ anyone(){
|
||||
# Miscellaneous
|
||||
tag(){
|
||||
sendmsg "Please stand by, he'll get to your message soon™️..."
|
||||
sendlog "You've been tagged: $msg"
|
||||
chid=$(jq -r '.message.chat.id' <<< $input | sed 's/-100//')
|
||||
msgid=$(jq -r '.message.message_id' <<< $input)
|
||||
uname=$(jq -r '.message.from.username' <<< $input)
|
||||
uid=$(jq -r '.message.from.id' <<< $input)
|
||||
text=$(jq -r '.message.text' <<< $input)
|
||||
sendlog "*You've been tagged.*
|
||||
*User:* [$name](tg://user?id=$uid)
|
||||
*Link:* [here](https://t.me/c/$chid/$msgid)
|
||||
*Message contents:*
|
||||
$(escape "()" "$text")"
|
||||
}
|
||||
hiya(){
|
||||
sendmsg "Hiya! :3"
|
||||
|
Loading…
x
Reference in New Issue
Block a user