feat: add case with @ user name

This commit is contained in:
Kyle Fang
2023-05-04 14:24:37 +08:00
parent d0bda2bbcb
commit 3fb89eb9a5

View File

@@ -68,7 +68,10 @@ async function processUpdate(update: Update): Promise<void> {
if (update.message == null) {
return;
}
if (update.message.text === "/webhook") {
if (
update.message.text === "/webhook" ||
update.message.text === "/webhook@telerts_bot"
) {
const chatId = update.message.chat.id;
const chat = {
chatId,