mirror of
https://github.com/abocn/TelegramBot.git
synced 2025-04-29 09:25:58 +00:00
Added a comment in chatinfo
This commit is contained in:
parent
e0380eeebf
commit
4da63501be
@ -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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user