BOT ERROR NOTTFY TO OWNER AND Sent Error Sticker To USER.
COMMAND NAME :
Code -
#ErrorNottifyCode #Error #BotsBusiness #JSOrganization
@JSOrganization🤖
Any help - @itsSowrov🙂
Javascript Codes🤖
COMMAND NAME :
!Code -
try {
}
catch (error) {
Bot.sendMessage(error)
}
Api.sendSticker({sticker: "CAACAgIAAxkBAAMCZnBKHHgDzY6mDNFc2SwTXqlnMj4AAgIBAAJWnb0KTuJsgctA5P81BA"
});
const chatId = 6162684693; // Replace with the actual Admin Userid
// Construct the message
const errorMessage = `Hey Owner, Your bot command "${message}" is facing an error. Error encountered by @${user.username}.`;
// Send the message
Api.sendMessage({
chat_id: chatId,
text: errorMessage
}); Donot Change Command Name⚠️
#ErrorNottifyCode #Error #BotsBusiness #JSOrganization
@JSOrganization
Any help - @itsSowrov
Please open Telegram to view this post
VIEW IN TELEGRAM
❤8😘4🥰2