mirror of
https://github.com/zhigang1992/telert.git
synced 2026-01-12 08:24:41 +08:00
feat: add case with @ user name
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user