mirror of
https://github.com/octoleo/telegram-bot-bash.git
synced 2024-11-29 18:53:52 +00:00
Merge pull request #53 from gnadelwartz/gnadelwartz-patch-2
Add delete message support
This commit is contained in:
commit
b641a96711
@ -153,6 +153,10 @@ send_html_message() {
|
|||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
delete_message() {
|
||||||
|
res=$(curl -s "$DELETE_URL" -F "chat_id=$1" -F "message_id=$2")
|
||||||
|
}
|
||||||
|
|
||||||
kick_chat_member() {
|
kick_chat_member() {
|
||||||
res=$(curl -s "$KICK_URL" -F "chat_id=$1" -F "user_id=$2")
|
res=$(curl -s "$KICK_URL" -F "chat_id=$1" -F "user_id=$2")
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user