Only send start message if the received message is from a private account

This commit is contained in:
2024-11-06 20:08:30 +03:30
parent 97b06b7b4e
commit 79deb67848

View File

@@ -76,10 +76,10 @@ public class MastodonBot
{
await HandleDbBackup.HandleDbBackupAsync(bot, logger, config.DB_NAME, config.ADMIN_NUMID, db);
}
else
// Send a message to prompt user to send /start and recieve their cat photo only if its from a telegram user and not a channel
else if (message.Chat.Type == ChatType.Private)
{
// Send a help message to prompt user to send /start and recieve their cat photo
await bot.SendMessage(message.Chat.Id, "Send /start to get a random cat!");
await HandleStartMessage.HandleStartMessageAsync(message, bot, db, logger);
}
}