Added a comment in chatinfo

This commit is contained in:
Lucas Gabriel 2024-05-25 12:59:05 -03:00
parent e0380eeebf
commit 4da63501be
No known key found for this signature in database
GPG Key ID: D9B075FC6DC93985

View File

@ -21,6 +21,7 @@ module.exports = function(bot, msg) {
chatHandleOutput = `Chat handle: none (private group)`; chatHandleOutput = `Chat handle: none (private group)`;
} }
// if chatName returns undefined, the chat is not a group or channel
if (chatName) { if (chatName) {
chatNameOutput = `Chat name: ${chatName}\n${chatHandleOutput}\nChat ID: ${chatId}\n\n${isForumOutput}`; chatNameOutput = `Chat name: ${chatName}\n${chatHandleOutput}\nChat ID: ${chatId}\n\n${isForumOutput}`;
} else { } else {